Seeking assistance with implementing a toggle button for a side navbar in Angular and Typescript
Nav
<nav *ngIf="nav.visible" class="sidebar col-xs-12 col-sm-4 col-lg-3 col-xl-2 bg-faded sidebar-style-1 sidenav pt-3 mt-1 pr-0 pl-0">
<ul class="nav nav-pills flex-column sidebar-nav navcss">
<li class="nav-item"><a routerLink="/home" class="nav-link h7 pb-2 pr-0" routerLinkActive="active"
[routerLinkActiveOptions]="{exact:true}"><em class="fa fa-home mr-2"></em> Home </a></li>
<li class="nav-item"><a routerLink="/profile" class="nav-link h7 pb-2 pr-0"><em class="fa fa-desktop mr-2 "></em> Profile</a>
</li>
<li class="nav-item"><a routerLink="/dob" class="nav-link h7 pb-2 pr-0"><em class="fa fa-calendar-o mr-2"></em><span
class="sr-only">(current)</span> DOB</a></li>
</ul>
</nav>