1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Bind id to Angular mat-checkbox

Discussão em 'Angular' iniciado por Matthew, Setembro 17, 2024.

  1. Matthew

    Matthew Guest

    I want to bind id to Angular material checkbox. I have an object item. When I inspect html I have item.id + '-input' But when I bind name it's okay: item.id

    This is my code:

    <mat-checkbox [id]="item.id"[name]="item.id">

    Continue reading...

Compartilhe esta Página