Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading another component instead of root-app-component

When we use angular routing,can another component be loaded in the main HTML page instead of root-app component according to the given route?

like image 955
Saubhagya Avatar asked Mar 03 '23 22:03

Saubhagya


1 Answers

add <router-outlet></router-outlet>element on your root-app. i think it will works.

like image 145
Erandana Avatar answered Mar 05 '23 15:03

Erandana