I want to make navbar active for this i am using css but when i am going to refresh page active tab is going to remove how can i do this in angular 2?
HTML:--
<ul class="nav navbar-nav navbar-top "
*ngFor="let menu of menus">
<li><a href="" (click)="goToPage($event)">{{menu}}
</a>
</li>
</ul>
css:--
navigation a:FOCUS {
box-shadow: 0 -5px 0 -4px #eee;
color: #ffffff;
width:30%
}
.navigation a:HOVER {
box-shadow: 0 -5px 0 -4px #eee;
color: #ffffff;
width:30%
}