in my ng app I'm working with roles. All roles are stored in an array. How can I check if a role exists in my html template without doing something like this:
<div class="customer-entry" *ngFor="role of userRoles">
<div *ngIf="role == 'Admin' || role == 'Superuser'">
<span class="badge badge-warning">allowed</span>
</div>
</div>
In my opinion there must be a solution to do this without a ngFor.