How can I use "*ngIf else"?

Discussão em 'Angular' iniciado por El houcine bougarfaoui, Janeiro 16, 2025.

  1. I'm using Angular and I want to use *ngIf else (available since version 4) in this example:

    <div *ngIf="isValid">
    content here ...
    </div>

    <div *ngIf="!isValid">
    other content here...
    </div>


    How can I achieve the same behavior with ngIf else?

    Continue reading...

Compartilhe esta Página