Похожие чаты

Hi everyone. I need some help with angular4. I have

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?

1 ответов

5 просмотров

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.

Похожие вопросы

Обсуждают сегодня

Карта сайта