angular 4: *ngIf with multiple conditions angular 4: *ngIf with multiple conditions angular angular

angular 4: *ngIf with multiple conditions


Besides the redundant ) this expression will always be true because currentStatus will always match one of these two conditions:

currentStatus !== 'open' || currentStatus !== 'reopen'

perhaps you mean one of

!(currentStatus === 'open' || currentStatus === 'reopen')(currentStatus !== 'open' && currentStatus !== 'reopen')


You got a ninja ')'.

Try :

<div *ngIf="currentStatus !== 'open' || currentStatus !== 'reopen'">


<div *ngIf="currentStatus !== ('status1' || 'status2' || 'status3' || 'status4')">