(AngularJS v1.2.0-rc.3 + Angular UI-Router v0.2.0)
In my index.html, I have the following code:
<div class="container" ui-view></div> In my app.js, I have the following code:
$stateProvider .state('projects', { abstract: true, url: '/projects', template: '<ui-view />', }) // below display properly .state('projects.list', { url: '', templateUrl: 'views/project_list.html', controller: 'ProjectListCtrl' }) // below display properly .state('projects.one', { url: '/{projectId:[0-9]{1,8}}', templateUrl: 'views/project_dashboard.html', controller: 'ProjectCtrl' }) // below does not display at all .state('projects.one.campaigns', { url: '/campaigns', template: 'I cannot seem to display this text' }) I can hit the following routes just fine: index.html/projects, index.html/projects/1, but I cannot hit this route: index.html/projects/1/campaigns
Does anyone know why I can't?
Bonus points if you can answer how I could display the projects.one.campaigns state on the same URL page as the projects.one state.