Search code examples
angularjsangularjs-directiveangularjs-routing

How can I easily implement multiple layouts in Angular JS?


I need to be able to specify different layouts for different routes, and most preferably I would like to be able to define layouts and other parameters in an object in route config and have them propagate on route change.


Solution

  • Looks like https://github.com/angular-ui/ui-router from the Angular team is the best approach.