How can I easily implement multiple layouts in Angular JS?

angularjs, angularjs-directive, angularjs-routing

Solution

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

Problem

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.

Original source