Angular Material hide mat-option

Discussão em 'Angular' iniciado por Md. Parvez Alam, Março 4, 2025.

  1. I can see there is property hidden, But when I try its property its not working

    <mat-option
    *ngFor="let item of itemlist"
    [value]="item.Name"
    [hidden]="true">
    <span>{{ item.Name }}</span>
    </mat-option>


    But above is not hiding.

    What can I do to hide it, I need to hide few options depending on condition

    Please advise.

    Thanks

    Continue reading...

Compartilhe esta Página