I am trying to use interpolation to pass value of src
attribute of img
HTML element. However, this influences how the element is rendered, the element is rendered as a literal.
<div *ngFor="let tour of tours" class="col-md-4 tour-tile">
<div class="tour-tile-inner">
<div class="top-bar">{{ tour.name }}</div>
<img class="myimage img-responsive thumbnail" src="{{"/images/tours/kutna-hora/tile.jpg"}}" alt="">
</div>
</div>
I tried also src={{...}}
instead of src="{{...}}"
with the same result. I do not know why the literal is rendered.