【发布时间】:2016-10-03 16:10:26
【问题描述】:
多级嵌套在 ui-router 中不起作用。我在名为“tpl.hello.html”的模板中添加了“ui-view”,这是一个状态为“home.hello”的模板。这个“home.hello”状态是“home”状态的子状态。之后,我在 stateprovider 中添加了以下状态:
.state('home.hello.test', {
url: '/test',
templateUrl: 'tpl.hellonested.html'
})
但是这个“home.hello.test”状态不会在“home.hello”状态中加载。
这里是plunkr 看看。
【问题讨论】:
-
我试过你的 plunkr,它的工作正常。
标签: angularjs routing angular-ui-router multi-level