Let's say I want to have a similar setup as facebook.com. When logged out, the content of this url is a regular home page with info about facebook and a login form. When logged in, this same url (facebook.com, no specific route) is now displaying a feed of data.
What is the proper way of implementing this?
I thought about simply having something like:
<div *ngIf="isLoggedIn; else loggedOut">
<internal-dashboard-component></internal-dashboard-component>
</div>
<ng-template #loggedOut>
<external-home-component></external-home-component>
</ng-template>
But that seems a bit complex.
Is this a logical approach? Is there something that could be done with Angular routing that I am missing??