how to bind img src in angular 2 in ngFor?

前端 未结 4 1636
感动是毒
感动是毒 2020-12-01 09:18

In my project I am getting data: image src, student name and student id. I bind student name and student id.

How to bind

4条回答
  •  离开以前
    2020-12-01 09:38

    I hope i am understanding your question correctly, as the above comment says you need to provide more information.

    In order to bind it to your view you would use property binding which is using [property]="value". Hope this helps.

    {{student.id}} {{student.name}}

提交回复
热议问题