UI Router - much more powerful
State based
routing
.config(function($stateProvider){
$stateProvider
.state('layout', {
abstract: true,
templateUrl: 'layout.html'
})
.state('layout.user', {
views: {
sidebar: {
templateUrl: 'sidebar.html',
controller: 'SidebarCtrl',
resolve: {...}
},
content: {...}
}
})
});