I am building a application.
The application state config file
// setup an abstract state for the application
.state('app', {
url: "/app",
abstract: true,
templateUrl: "templates/menus.html",
controller: 'MenuCtrl'
})
.state('app.parent', {
url: "/parent",
views: {
'menuContent': {
templateUrl: "templates/parent.html",
controller: 'ParentCtrl'
}
}
})
.state('app.parent.child, {
url: "/child",
views: {
'menuContent': {
templateUrl: "templates/child.html",
controller: 'ChildCtrl'
}
}
})
I have a button in parent state which should redirect to child state, on button click I am doing
$state.go('app.parent.child');
However on button click the url is getting changed to app/parent/child but the child view is not loaded. I put console log in child controller the controller also is not getting triggered.
Is this a bug ? or am I missing something ?