I'm confused a bit. I need to hide block if result have one of several cases. But seems it not working correctly...
<div *ngIf="currentStatus !== 'open' || currentStatus !== 'reopen' ">
<p padding text-center class="text-notification">{{message}}</p>
</div>
It's just appeared with other condition. It doesn't work neither 1 condition nor for 2. Also tried *ngIf="currentStatus !== ('open' || 'reopen') "
but it's works ok only for 1 case.
This question is related to
angular
typescript
angular2-directives
angular-ng-if
You got a ninja ')'.
Try :
<div *ngIf="currentStatus !== 'open' || currentStatus !== 'reopen'">
<div *ngIf="currentStatus !== ('status1' || 'status2' || 'status3' || 'status4')">
Source: Stackoverflow.com