Exploring the capabilities of angular-ui and specifically experimenting with the ui-router
module to create nested views. I'm running into an issue where a partial isn't rendering within another partial:
The structure of nesting looks like this:
index.html
-main.form.html
-main.sidebar.html
-sidebar.slider.html
In my current configuration in app.js
:
$stateProvider
.state('main', {
url: '/',
views: {
'sidebar': {
templateUrl: 'views/partials/main.sidebar.html',
views: {
'slider': {
templateUrl: 'views/partials/sidebar.slider.html'
}
}
},
'form': {
templateUrl: 'views/partials/main.form.html',
},
'tribute': {
templateUrl: 'views/partials/main.tribute.html',
},
'submit': {
templateUrl: 'views/partials/submit.html',
}
}
})
All other partials load correctly, and the browser displays the ui-view
directive properly, but the actual content of the partial isn't rendered (it only shows the ui-view="sidebar.slider"
text)
Any suggestions or ideas?