Preventing duplicate ui-view in AngularJS

一个人想着一个人 提交于 2019-12-22 09:55:15

问题


The situation

I have a ui-view component in my template:

<div id="innerController" ui-view="stateview"></div>

And I have states A and B defined for this view.

The problem

When I go from state A->B, the rendered DOM looks like this:

And I got 2 different states on the screen.

The question

Why do I get 2 different ui-views?

How can I force a single ui-view?

Thanks!

来源:https://stackoverflow.com/questions/28792684/preventing-duplicate-ui-view-in-angularjs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!