w20-framework / w20

W20 is a Web framework, built upon a powerful RequireJS/AngularJS/Bootstrap mix to help you develop single page applications.
https://w20-framework.github.io/
Mozilla Public License 2.0
8 stars 9 forks source link

Allow persisting state easily between routes change #49

Open kavi87 opened 8 years ago

kavi87 commented 8 years ago

One of the most common problem when you do routing in angular is to save your state between controllers. This is generally done with a service but in many case it seems wrong to just create a service to pass data around. Solution such as ui-router seems to carry a lot of issues. What could be done eventually is to allow saving the $scope of a specified controller whenever it change and retrieve it easily.