By default, the first list item will be active. When you click on any list item, it should add a class of 'active' and remove the class from its siblings.
public items = [{
value: 'All',
},
{
value: 'Photos',
},
{
value: 'Video',
},
];
li .active {
color: red;
}
<div *ngFor="let item of items" class="nav-li">
<ul>
<li class="value" [value]="item.value"><a href="">{{item.value}}</a></li>
</ul>
</div>