Hello,
I'm building an application and I have a question that's pretty basic I
think but I've been unable to find and answer to it.
Here's what I have. I've built my application using angular-ui-router to
handle my routes and currently I have my index.html which contains my
navigation code and a ui-view tag for the various page templates.
What I'd like to do is remove the code for the navigation and replace it
with a named ui-view so I can move that HTML into it's own template and
clean up my index.html. The problem I have is the only way that I know how
to do this would be to create a route that defines the navigation and body
views and then nest all other routes under that route. The problem I have
with this is that I then need to add that to every route I create or risk
having a missing navigation.
How can I create a base route that is applied to every "child" but doesn't
require something like .state('baseRoute.someRoute') but instead would be
included on .state('someRoute') and .state('everyOtherRoute')
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.