将图像名称发送到html标记

时间:2017-01-05 12:22:32

标签: html angular

主要想法是根据所选的ID显示图片:

<div *ngIf="t">
  <h2>{{t.name}} details!</h2>
  <h3>{{t.description}}</h3>
  <img src="images/inside/1.jpg" class = "grid grid-pad">
</div>
instead of 1.jpg i would like to use t.filename? How can i do this?

0 个答案:

没有答案