I'm using UI-Router to build an application. I need to have multiple views on one page so I'm using abstract states. I tried to pass the parameter "isEmbedded" to the owner
view, but it's unfortunately not working. I'm wondering if its because I'm passing it to a child view. When I console.log($stateParams)
in ownerCtrl
, it does not show the isEmbedded
parameter. Any idea why?
.state('dog', {
url: "",
parent: "dogAbstract",
views: {
"owner": {
templateUrl: 'client/people/views/owner.ng.html',
controller: 'ownerCtrl',
params:{
isEmbedded:true
}
}
}
})
P.S. I got the idea to use params
from this question: