I am brushing up my Angular knowledge and I came across an "else" to use if ngIf. In reality I think it is easier to use "valor !== false" to simulate an else. But if I need to give assistance in a code that uses I want to be prepared.
<div *ngIf="valor === 'teste'; else showOther">tttt</div>
<ng-temlate #showOther>
<ng-content> outro </ng-content>
</ng-temlate>
I get this
Type 'HTMLElement' is not assignable to type 'TemplateRef<NgIfContext<boolean>>'.