E
E
Egor Sh2016-03-19 18:07:06
Angular
Egor Sh, 2016-03-19 18:07:06

How to make an immutable header and footer of a website in angular2?

Good afternoon! Please tell me if it is possible to do something in angular2 so that the header and footer do not change when switching between pages. As I understand it, you need to create a container component in which you can connect other components like this through selectors.
But I'm not sure, plus I couldn't find examples in Google.
I will be very grateful if you help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Skrolea, 2016-03-19
@Skrolea

So yes. Just a component. And there is an example, for example, in Angular2-seed
In it in app.html

<sd-navbar></sd-navbar>
<router-outlet></router-outlet>

and these are your pages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question