में तुलना ऑपरेटर == और === के बीच अंतर क्या है, मुझे समझ में नहीं आता कि ये दो ऑपरेटर क्यों मौजूद हैं। बूलियन दोनों तुलना == और === के मामले में काम करने के लिए लग रहे हैं, लेकिन enum तुलना के मामले में '==' ही काम करता है:कोणीय 2: एनजीआईएफ निर्देश
<div class="interventionGroup">
<div class="interventionGroupHeader transition_1s" (click)="onClickHeader()">
{{GroupName}}
<div *ngIf="expanded == true" class="expand-icon"><i class="material-icons">expand_less</i></div> <!-- WORKS -->
<div *ngIf="expanded === false" class="expand-icon"><i class="material-icons expand-icon">expand_more</i></div> <!-- WORKS -->
</div>
<button *ngIf="GroupType == GroupTypeEnum.mesInterventions">dfdsfsd</button> <!-- WORKS -->
<div style="list-style-type:none" *ngIf="expanded === true">
<div *ngFor="let intervention of interventions"
(click)="onClick(intervention)">
<intervention-button [intervention]="intervention"></intervention-button>
</div>
</div>
</div>
कृपया [ngIf विवरण] (http://stackoverflow.com/questions/tagged/ngif) देखें। यह .Net: 'NGIF एक ओपन-सोर्स टूल है जो एनिमेटेड गिफ को बनाने/पढ़ने के लिए नेट की क्षमता बनाता है। – 030