multiple layout for different pages in angular 2

后端 未结 4 1857
鱼传尺愫
鱼传尺愫 2020-11-29 17:59

I am building a angular2 app.

I have a login page- just 2 input (no header no footer no side bar)

when user login he should be navigated to a page with heade

4条回答
  •  [愿得一人]
    2020-11-29 18:18

    Notice the router-outlet. That is where you content will be displayed. This is an example of my app.component.html. In this case the redirect is to the home.component and its displayed in the router outlet.

    All rights reserved

提交回复
热议问题