I have this in html :
<ul class="operators">
<li>Operators: </li>
<li *ngFor="let operator of operators" [ngClass]="{'bold' :uS.getUserCode() == operator }"><i
class="fa fa-at"></i>
{{userService.getName(operator)}}</li>
</ul>
On enter i insert in array opertaros new operator.
But i want to check if uS.getUserCode() == operator to add class 'bold'.
uS.getUserCode() is a @Injectable() service that is loaded on start of app and i imported it in constructor.
Any suggestion how can i achive this?
operator? Also did you mean===instead of==?