I have an application built.
app.Component.html:
app.Component.html
<div class="header"> <app-nav></app-nav> </div> <div class="content"> <router-outlet></router-outlet> </div> <div class="footer"> <app-footer></app-footer> </div>
In app.Component.ts, I have a HostListener binded to a keyEvent and I would like to have <router-outlet> always active even when I click on the <app-nav>.
app.Component.ts
<router-outlet>
<app-nav>
Do you have any tips for that?
2.1m questions
2.1m answers
60 comments
57.0k users