Each xxxScope is a map of attribute of certain component. You can use it as a temporary space to save and retrieve data. It's a mechanism to realize communication between pages, applications. You have to understand each component's life cycle, to decide which scope you should use. In most cases, you should use
getAttribute are the api to set and get variable in certain xxxScope.