Hrides Thakur

Hrides Thakur

  • NA
  • 292
  • 47.4k

Login and redirect to home page, home has menu in angular 2

Jun 29 2018 6:19 AM
Hi
 
i have this below structure in my angular 2 project.
 
 
 
app.component has router-outlet. i have login component which is the first screen when open the application.
 
 
 
it comes corrent it opens my login page when i login and redirect to home screen which has my application menu bar it opens correctly, but when i click on the menu and redirect to another screen, it redirect corectly but my mene gone. please let me know the proper structure where i should write router-outlet or correct structur for login.component and app.component.
 
i bootstrap my app.component in app.module
 
 
 
Please check here my application https://angular-full.stackblitz.io
userid: 12345
password:12345

Answers (3)