I have been through several similar questions here on this and still cannot figure out what I am doing wrong. I am looking to load a view within a view (which also happens to be within another view).
The code in rules.html is not appearing. Am I misunderstanding the concepts behind ui-router?
In the firefox developer console I am simply getting <!-- uiView: rules -->
index.html
<body ng-app="App">
<div class="container" ui-view="container" ></div>
</body>
parent.html
<div>
//some wrapper stuff
<div ui-view="parent"></div>
</div>
edit-entity.html
<div ng-controller="ProjectManagerController as data">
// other code showing fine
<div ui-view="rules"></div>
// other code showing fine
</div>
rules.html
<div>TEST CODE</html>
app.js
$stateProvider
.state('app', {
views: {
'container': {
templateUrl: 'views/parent.html?nd=' + Date.now(),
controller: 'MainController as data'
}
}
})
.state('edit-entity', {
parent: 'app',
url: '/entity/{id:int}/edit',
views: {
'parent': {
templateUrl: 'views/entity-edit.html?nd=' + Date.now(),
controller: 'MainController as main'
}
}
})
.state('rules', {
parent: 'edit-entity',
views: {
'rules': {
templateUrl: 'views/rules.html?nd=' + Date.now(),
controller: 'MainController as data'
}
}
});
EDIT: I have also tried rules.entity