I have a bootstrap list where I show a list of Dashboards. By default one of the Dashboard which starts with some name must be selected by default, by adding a css class to existing class attribute something like below.
<a *ngFor="let user of userModel" class="list-group-item list-group-item-action active">{{user.dashBoardName}}</a>
the class active of class attribute of tag must be added only if the dashBoardName is any string other wise it must be like below
<a *ngFor="let user of userModel" class="list-group-item list-group-item-action">{{user.dashBoardName}}</a>
How can we do that using Angular. By the way I am new to the Angular stuff though.