Enable mobile-first workflows and provide an easy navigation mechanism to quickly jump to desired functionality. Using the authentication service, given a user's current role, only display the links for features they can access. We will be implementing the side navigation mock-up, as follows:
Let's implement the code for the side nav as a separate component, so that it is easier to maintain:
- Create and declare a NavigationMenuComponent in app.module
src/app/app.module.ts@NgModule({ declarations: [ ... NavigationMenuComponent, ],