Playing around with angular-ui and specifically using the ui-router
module to do some nested views. I'm having trouble getting a partial to render within a partial:
The nesting is as follows:
index.html
-main.form.html
-main.sidebar.html
-sidebar.slider.html
My current app.js
setup is:
$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 and I can see the ui-view
directive loading in the browser, but the actual partial isn't rendered (the div just contains the ui-view="sidebar.slider"
literal)
Any thoughts?