What is the use of assigning "let item" to a structural directive in angular

Discussão em 'Angular' iniciado por janci, Fevereiro 11, 2025.

  1. janci

    janci Guest

    I am trying to understand the code found on internet link here. Its about structural directive in angular. I can't understand what this particular peace of code it doing (extract from AppComponent):

    ...
    <li *listItem="let item">
    {{item.header}}: {{item.content}}
    </li>
    ...


    The *listItem structural directive is assigned "let item" value. What does that mean? Can somebody shed some light on this please?

    Continue reading...

Compartilhe esta Página