If the items is dynamic flow this
You can create a global service has an public poperty with type of array , and render this array of item on navbar
second step in each componet inject the global service and at ngOninit method assaing new item to the service , so every time navbar will have current component items.
if the items is already render in navbar
just create a global service with property of string , this property like flag, at ngOninit method assign component flag value like this 'home','admin','setting'
<ul>
<li *ngIf="globalService.selectdFlag === 'home'">home 01</li>
<li *ngIf="globalService.selectdFlag === 'home'">home 02</li>
<li *ngIf="globalService.selectdFlag === 'admin'">admin 01</li>
<li *ngIf="globalService.selectdFlag === 'admin'">steeing 01</li>
<li *ngIf="globalService.selectdFlag === 'setting'">setting 01</li>
</ul>
Happy Coding