Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS. ui-view included in ng-view

I try to use ui-view included in ng-view, and it does not work. But when I use ui-view near ng-view, ui-view work and in ng-view.

Don't work:

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

Work:

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

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

like image 650
ExyTab Avatar asked Mar 22 '23 00:03

ExyTab


1 Answers

You should not mix ng-view & ui-view. Only use ui-view if you plan to use ui-router.

See ui-router FAQ : Don't do that

like image 165
Florian F Avatar answered Apr 27 '23 14:04

Florian F