我有以下简单的导航:
<ul class="iconsLine ic2 etabs">
<li>
<a ui-sref="dashboard.tree.workstation.queue"><span class="icos-user"></span></a>
</li>
<li>
<a ui-sref="dashboard.tree.workstation.settings"><span class="icos-cog2"></span></a>
</li>
</ul>
<div ui-view="detailDialogContent"></div>
这些链接不会改变状态。但是,如果我执行$state.transitionTo("dashboard.tree.workstation.settings");
,当我单击链接时,一切都会如我所愿地显示。
我在这里没有看到任何我想念的东西。我疯了吗?
状态定义:
state('dashboard.tree.workstation.settings', {
onEnter: function () {
console.log('dashboard.tree.workstation.settings');
},
views: {
'detailDialogContent': {
templateUrl: '/partials/admin/dialog/bits/workstation-settings.htm'
}
}
}).