I am trying to use ui-router on my current project. But somehow, when it comes to nested view(i think i wrote it proper and correct) it doesnt showing content of views.. Let me show you my code..
.state('sport', {
url:'/sport',
templateUrl: 'views/sport.html',
controller: 'HomeCtrl',
controllerAs:'home',
requireLogin:false,
})
.state('sport.subs', {
url:'/left',
parent:'sport',
views: {
'left@sport': { templateUrl:'views/partials/left-sidebar.html'},
'content@sport': {templateUrl:'views/home.html'},
'right@sport':{templateUrl:'views/partials/sup-nav.html'}
},
onEnter:function() {
console.log("leftside Entered");
},
requireLogin:false
})
and my sport.html
<div ui-view="left"></div>
<div ui-view="content"></div>
<div ui-view="right"></div>
it is opening sport.html and showing their content but not nested views..
I've tried everything. I do research about this problem in here and everywhere else but couldnt find the solution.. Somehow, when it comes to nested view its like something is blocking it or i am doing it all wrong.. I dont know.. Any help will be very much appreciated..
When i tried to debugging, it seems every view is loaded.
PS: I removed "parent", and then add it, i tried almost everything..
