Ich habe Zustand wie folgt. Ich kann von app
zu app.child1
navigieren. Aber ich kann nicht von app.child1
zu app.child1.child2
navigieren. In der Browserkonsole ist kein Fehler aufgetreten. Beachten Sie, dass ich eine ionische Anwendung entwickle, aber ich denke nicht, dass dies eine ionische Angelegenheit ist.Konnte nicht zum Kind Zustand in ui Router
app.state('app', {
url: '/app',
abstract: true,
templateUrl: '',
controller: ''
})
.state('app.child1', {
url: '/app',
views: {
'menuContent': {
templateUrl: '',
controller: ''
}
}
})
.state('app.child1.child2', {
url: '/app/child1/child2',
views: {
'menuContent': {
templateUrl: '',
controller: ''
}
}
})
Navigation:
<button ui-sref="app.child1.child2">Change Page</button>
stellen Sie sicher, in Ihrem 'app.chil d1's Vorlage, gibt es '
' Richtlinie, wenn nicht Ihre 'app.child1.child2' wird nicht aufgefüllt. – CozyAzure