【发布时间】:2015-03-19 10:50:35
【问题描述】:
我有几个类似这样的模板:
home.html
<div ui-view></div> <!-- homeframe.html plugs in here -->
homeframe.html
<!-- quickcontact.html and settings.html plugs in here -->
<div ui-view="widget"></div>
<a class="link" ng-click="changeUrl('/')">quickcontact</a>
<a class="link" ng-click="changeUrl('/settings')">settings</a>
quickcontact.html
<div>
.
.
.
</div>
settings.html
<div>
.
.
.
</div>
homeframe.html 加载到出现在home.html 中的ui-view 中。同样,quickcontact.html 和 settings.html 在 widget ui-view 中加载。我想阻止homeframe.html 再次重新加载,而只是不断更改widget ui-view 的内容。如何使用 angular-ui 状态实现这一点?
【问题讨论】:
标签: javascript html angularjs angular-ui-router angular-ui