nishant kumar

nishant kumar

  • NA
  • 214
  • 6.6k

ui-view and router-outlet on same page

Mar 19 2018 5:52 AM
<a [routerLink]="['/angularjs']">AngularJs</a>
<a [routerLink]="['/angular2']">Angular2</a>
<router-outlet></router-outlet>
<div id='awesome' ui-view></div>`
 
 
Going from angularjs to angular2 does not clear out ui-view but vice-versa clear router-outlet. How to make it work as separate view.

Answers (1)