1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Creating a list of checkboxes with ngFor Angular

Discussão em 'Angular' iniciado por sander, Outubro 9, 2024 às 13:32.

  1. sander

    sander Guest

    I have a list of objects that's structured like this:

    [{item},{item},{item}]


    I'm trying to create a list of checkboxes with angular out of this list like this:

    <form>
    <input *ngFor="let object of objects" type="checkbox"> {{object.name}}
    </form>


    The checkboxes themselves do show up, but I can't get the name of the object to show with each checkbox. What am I doing wrong?

    Continue reading...

Compartilhe esta Página