Aspnetcore-angular-universal: Page layout login

Created on 23 Jun 2017  路  2Comments  路  Source: TrilonIO/aspnetcore-angular-universal

Hi Mark

Thanks for the template, I have a simple question but I have not been able to solve it myself

How can I design a component for example login, but do not share the design in app.component

<div class="col-sm-3">
    <nav-menu></nav-menu>
</div>
<div class="col-sm-9 body-content">
    <router-outlet></router-outlet>
</div>

In the login component I can not display the menu, but in the other components I have to do it

    <router-outlet></router-outlet>

Thank you

question

All 2 comments

This seems more like a general purpose angular question. You would typically do something like this using child routes.

Yes that or you could have some logic to hide let's say the nav-menu when the login is shown. Check out the Router guide in the angular.io docs for some tips and tricks on childRoutes as well! Hope you figure it all out!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

callawey picture callawey  路  4Comments

rcanpahali picture rcanpahali  路  3Comments

peterdobson picture peterdobson  路  4Comments

peterdobson picture peterdobson  路  3Comments

digibum picture digibum  路  4Comments