opitzconsulting / jquery-mobile-angular-adapter

jquery mobile angular adapter
MIT License
517 stars 114 forks source link

Feature request: Allow argument passing between $activePage and onActivate #2

Closed tbosch closed 13 years ago

tbosch commented 13 years ago

Hi, it would be nice if the following were possible: Call $activePage service, with an argument. When the page is changed, that argument should be given to the onActivate callback of the selected page.

Would also be nice to save that object in the url / hash, so the new page gets bookmarkable / refreshable...

Benefits: The pages are decoupled: The new page does not need to know who called that page / introspect the calling scope.

tbosch commented 13 years ago

No more needed. Use ngm:shared-controller for sharing state between pages.