Im trying to get my nested route working but it's giving me hard time for two days now :(
one level works fine
two levels works fine
three levels is not working!
can anybody please help me out?
Thanks in advance
angular.module('settings', []).config(['$stateProvider', '$routeProvider', '$urlRouterProvider', function($stateProvider, $routeProvider, $urlRouterProvider) {
$stateProvider
.state('settings', {
url: '/settings',
template:"Settings",
controller: function(){
console.log('settings');
}
}).
state('settings.branch', {
url: '/{branchId:[0-9]{1,8}}',
template:"Branch",
controller: function(){
console.log('branch');
}
}).
state('settings.branch.prop', {
url: '/prop',
template:"Property",
controller: function(){
console.log('property');
}
});
}]);
'/settings' is working
'/settings/1234' is working
'/settings/1234/prop' is not working, always return the prevues state 'Branch'