Is it possible to do two ngIf in the angular.html? follows an example
if(1=2){
}else{
if(){
}
}
I need to do two checks.
Check teacher restriction if false to check classroom availability.
if 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>
Any help on how to solve?