How to set without causing `unsafe value` exception?

I am working on a tutorial involving the setting of an iframe src attribute:

<iframe width="100%" height="300" src="https://stackoverflow.com/questions/38037760/{{video.url}}"></iframe>

This throws an exception:

Error: unsafe value used in a resource URL context
at DomSanitizationServiceImpl.sanitize...

I have already tried using bindings with [src] with no success.

9 Answers
9

Leave a Comment