AngularJS. ui-view is included in ng-view

I am trying to use the ui-view included in ng-view and it does not work. But when I use u-view near ng-view, ui-view works in ng-view too.

Does not work:

<div ng-view id="body-div"></div>

Job:

<div ui-view id="body-div"></div>
<div ui-view id="body-div"></div>

Example. http://plnkr.co/edit/WHWw5DNHBRWjo1JIGouq

+4
source share
1 answer

You cannot mix ng-view and u-view. Use only ui-view if you plan to use ui-router.

See the ui-router FAQ: Do Not Do This

+7
source

All Articles