mobile-angular-ui icon indicating copy to clipboard operation
mobile-angular-ui copied to clipboard

Use ui-router instead of content-for

Open ProLoser opened this issue 10 years ago • 1 comments

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.

ProLoser avatar Jul 28 '15 19:07 ProLoser

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?

mcasimir avatar Jul 28 '15 22:07 mcasimir