What is the most effective strategy for handling two groups of views in Angular? Let me explain how I typically structure my layout in app.component.html
:
<app-header></app-header>
<router-outlet></router-outlet>
<app-footer></app-footer>
This setup results in both the app-header
and the app-footer
being displayed on every page.
However, what if I need to display another set of views, like an intranet setup shown in this image:
https://i.sstatic.net/m1ErO.jpg How would I go about implementing this?
For instance, considering my current configuration, how can I place the queHacemosAdminComponent
in a separate group of views?
const routes: Routes = [
{ path: '', component: InicioComponent },
{ path: 'queHacemos', component: QueHacemosComponent },
{ path: 'contacto', component: ContactoComponent },
{ path: 'queHacemosAdmin', component: QueHacemosAdminComponent }
]