SyntaxFix
Write A Post
Hire A Developer
Questions
Please use this module
RouterModule.forRoot( [ { path: "", component: LoginComponent} ] )
now just replace your <login></login> with <router-outlet></router-outlet> thats it
<login></login>
<router-outlet></router-outlet>