Is it possible to do two ngIf in angular.html?
An example:
if(1=2){
}else{
if(){
}
}
I need to make two checks.
Check the teacher's restriction if it is false to check the availability of the classroom.
follows an example of my code. I'm new to angular and I do not know how everything works.
<td *ngIf="!restricaoSegUm; else templateName" *ngIf="!restricaoSalaSegUm; else sala" [dragula]='"another-bag"' [dragulaModel]='segUm'>
<div [@resultadoAnimacao]="animationsState" class="cursor-pointer" *ngFor='let s1 of segUm' (dblclick)="removeNumbers(s1,this.segUm)">{{s1?.no_diciplinas}}</div>
</td>
<ng-template #templateName >
<td style="background-color: rgb(244, 67, 54);"></td>
</ng-template>
<ng-template-sala #sala>
<td style="background-color: rgb(244, 146, 54);"></td>
</ng-template-sala>
*ngif="!teachersRestriction && classRoomAvailable;"should work