Error : Cannot find primary outlet to load

<router-outlet></router-outlet> needs to be placed inside of rootcomponent or appcomponent.

Here, not sure but looks like you want to load loginComponent through router if I’m not wrong.

So place/add router-outlet in your root or app component.

(NOTE: And remove from LoginComponent if it is not your root/app component)

Leave a Comment

tech