Have had issues trying to implement an abstract child state that belongs to an abstract parent state and has child states itself. Something like the following:
.state('parent', {
abstract: true,
url: '/parent',
templateUrl: 'parent/parent.html',
controller: 'parent-controller',
})
.state(parent.child', {
abstract: true
url: '/child',
templateUrl: 'parent/child/child.html',
controller: 'child-controller',
})
.state(parent.child.grandchild', {
url: '/grandchild',
templateUrl: 'parent/child/grandchild/grandchild.html',
controller: 'grandchild-controller',
})
So far I haven't been able to get this to work, nor have I found any answers that deal with this question. The documentation only seems to cover parent-child, but doesn't get into grandchildren.
Is this possible with UI-Router in angular? Does my failure have to do with using dot notation when declaring the state name?
ui-viewin either parent or child template. If you have nothing to put inchild.html, you can target parent'sui-viewby usingviews: { "@parent": {...} }in grandchild. - Icycool