What is the difference between *ngIf and [hidden]?

Discussão em 'Angular' iniciado por ishandutta2007, Outubro 23, 2024.

  1. Say I check it against and expression, then aren't these two same?

    <div *ngIf="expression">{{val}}</div>

    <div [hidden]="!expression">{{val}}</div>

    Continue reading...

Compartilhe esta Página