请帮助我为什么我无法在另一个html页面中显示mutipul视图。但它显示在Index.html页面(页面重定向到另一个页面,但它失去了视图)
的index.html
<a ui-sref="MultiView">MultiView</a>
MyApp.Js
.state('MultiView', {
url: '/MultiViewGenerated',
views: {
'Employee': {
templateUrl: '/ApiClient/MultiView/MultiView.html',
controller: 'MultiCtrls',
},
'Department': {
template:'Hello',
}
Htmlcode
此处员工工作正常,但为什么Department
无法正常工作
<div ng-controller="MultiCtrls">
<p>This is MultiView</p>
</div>
<div ui-view="Employee">
</div>
<hr />
<div ui-view="Department">
<p>This is MultiView2...</p>
</div>