3 compontents: layout, about and contact. I have defined a navbar and footer in the layout component and want to use is as a template for the other two components so that I will only define the contents (about and contact details) without having to redefine them. How do I do that?
u can put ur template like <header></header> <router-outlet></router-outlet> <footer></footer> and use router to route btw about and contact. I hope this help you.
Обсуждают сегодня