mcasimir / mobile-angular-ui

Angular.js Mobile UI Framework with Bootstrap 3
http://mobileangularui.com/
MIT License
2.87k stars 709 forks source link

Use ui-router instead of content-for #281

Open ProLoser opened 9 years ago

ProLoser commented 9 years ago

So I just read that you have a content-for directive as a form of transcluding scope to other parts of the screen. Have you looked at doing this via ui-router using resolves and named views? It lets you spit out viewports anywhere in the view layer despite state level, and all of those named view controllers share the same resolves. Which means instead of having to put scope everywhere you're just giving access to shared resolves.

mcasimir commented 9 years ago

Hi @ProLoser, many people prefer ui-router, but although new docs will have a section about how to integrate ui-router (there is no conflict with maui), i'm not sure to make it default, i prefer to leave the decision to users.

Anyway can u explain a little more, maybe with an example?