I haven't played around with it yet but have you looked at childRouter? https://angular.github.io/router/Router
By the sounds of it, you could injected $router into your CategoriesController and setup routes specifically for the Categories there. On Monday, March 9, 2015 at 11:34:45 AM UTC-4, Rentius Engelbrecht wrote: > > Hi > > I'm using Angular 1.3 and want to incorporate the ngNewRouter. > Is there a way to configure the ngNewRouter when a module starts up? > > I configure the routes per module as the module is created. i.e main app > module has route config of "/home" or "/", I inject the $routeProvider into > the config and set the routes. > The categories module configures its own routes "/categories". i.e when > the module for categories is create I inject the $routeProvider into the > config and set the routes. > > I do not want the main module to configure the routes to categories. Each > module configures its routes in isolation. > > Regards > -- 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.
