WikiApp.config(function config($stateProvider, $urlRouterProvider) {
$stateProvider
.state('revision', {
url: '/wiki',
views: {
"main": {
controller: 'ListCtrl',
templateUrl: 'wiki/wiki.tpl.html'
},
"sidebar-left": {
templateUrl: 'wiki/wiki.sidebar-left.tpl.html'
}
},
data:{ pageTitle: 'List articles' }
})
This is the Angular code I have implemented and how it appears in my template file (wiki.tpl.html
):
<div ui-view="sidebar-left"></div>
While the main
view loads correctly, I'm encountering an issue with integrating the sidebar. It doesn't load as expected. Can someone help me identify what I am doing wrong and suggest a solution for using multiple templates on a single page?
Appreciate any help! Thank you!