我刚刚升级了Angular UI-Router和我的嵌套&命名视图不再呈现。有什么变化,这里发生了什么? ui-view="issues"
模板不再呈现,div显示为空...
我的路由器状态:
// Town
.state('town', {
url: "/:townShortId/:townName/:page",
views: {
"header": { templateUrl: "views/header/town.html" },
"content": { templateUrl: "views/content/town.html" },
// Issues = the nested and named view
"issues": { templateUrl: "views/issues/town.html" },
"footer": { templateUrl: "views/footer/town.html" }
}
})
我的容器JADE文件:
block content
section.content
section.container
div(ui-view="header")
div(ui-view="content")
div(ui-view="footer")
以ui-view =“content”
呈现的HTML<div id="lower-navigation" class="row">
<div id="main-container" class="col-md-offset-1 col-md-10">
<div class="row">
<div id="issues-container" class="col-md-5" ui-view="issues"></div> <!-- ui-view=issues -->
</div> <!-- row -->
</div> <!-- #main-container -->
</div> <!-- row -->