Skip to content Skip to sidebar Skip to footer

Cannot Find Primary Outlet To Load 'xyzcomponent'

I've got ng2 code loading in a .Net MVC component but the following error displays in the console: EXCEPTION: Uncaught (in promise): Error: Cannot find primary outlet to load 'User

Solution 1:

This error usually occurs when you are using the Router and you haven't declared an outlet for the router to use in your HTML:

<router-outlet></router-outlet>

Post a Comment for "Cannot Find Primary Outlet To Load 'xyzcomponent'"