Is it possible to create "standalone" components, meaning components without the basic app layout?
In my app.component.html I defined the navigation, header and footer. But now I want a login component that uses a different base layout.
My app.component.html looks like this:
<!-- Wrapper-->
<div id="wrapper">
<!-- Left navigation bar -->
<app-navigation></app-navigation>
<!-- Main page wrapper -->
<div id="page-wrapper" class="gray-bg">
<!-- Top navigation -->
<app-topnavbar></app-topnavbar>
<!-- Main view/routes wrapper-->
<router-outlet></router-outlet>
<!-- Footer -->
<app-footer></app-footer>
</div>
<!-- End page wrapper-->
</div>
<!-- End wrapper-->
And I want the router-outlet of the register and login component to be wrapped in a layout like this:
<!-- Wrapper-->
<div id="wrapper">
<!-- Main view/routes wrapper-->
<router-outlet></router-outlet>
</div>
<!-- End wrapper-->
How can I achieve this?
componentparameter in routes, root component (bootstrapparameter inNgModule). - Günter Zöchbauer