I have HTML template with slide menu and top nav menu and block for render main path page. like this:
...
<div class="content-wrapper">
<router-outlet></router-outlet>
</div>
...
But after it, my login page render in this content-wrapper block. How to write some code for render LoginPage without route-outline component? (for not render top nav and slide menus)
Keep the router-outlet, but use the router guards to prevent the route from being rendered unless the user logged in. I blogged about it here:
https://yakovfain.com/2016/07/20/angular-2-guarding-routes/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With