Angular7 interpolating values inside a string on an img="" in the html markup throws "quotes are not supported for evaluation"

Viewed 3399

I'm making an internal app that displays vimeo videos in a grid, i'm binding the source of each iteration and trying to replace the video ID in the link template like this:

  <iframe src="https://player.vimeo.com/video/{{ allVideos.title }}?color=25b86e&title=0&byline=0" 
      frameborder="0"
      webkitallowfullscreen mozallowfullscreen allowfullscreen>
      </iframe>

The problem is, I'm getting an error saying "quotes are not supported for evaluation" which is weird as I've done this before in the past.

1 Answers

Why not binding ?

<iframe [src]="getVideoLinkByTitle(video.title)"></iframe>

Related