A challenge I'm facing involves adding a dynamic id to a YouTube URL, which looks something like this:
<iframe width="460px" height="415px" ng-src="{{post.youtube_id}}" frameborder="0" allowfullscreen></iframe>
One of the URLs I'm attempting to insert into the src is: https://www.youtube.com/embed/C-IiiFvfdVo
However, when I try to do this, it triggers the following error message:
http://errors.angularjs.org/1.5.8/$interpolate/interr?p0=%7B%7Bpost.youtube_id%7D%7D&p1=Error%3A%20%5B%24sce%3Ainsecurl%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.5.8%2F%24sce%2Finsecurl%3Fp0%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FozXJ0QrEj2Y
angular.min.js:118 Error: [$interpolate:interr] http://errors.angularjs.org/1.5.8/$interpolate/interr?p0=%7B%7Bpost.youtube…ecurl%3Fp0%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FozXJ0QrEj2Y at Error (native) at at Function.Ka.interr () at J () at Array. () at S.exp () at Object.pre () at at la () at p ( function) @ angular.min.js:118(anonymous function) @ angular.min.js:90J @ angular.min.js:104(anonymous function) @ angular.min.js:128S.exp @ angular.min.js:106pre @ angular.min.js:79(anonymous function) @ angular.min.js:16la @ angular.min.js:81p @ angular.min.js:66g @ angular.min.js:58g @ angular.min.js:58g @ angular.min.js:58g @ angular.min.js:58(anonymous function) @ angular.min.js:58(anonymous function) @ angular.min.js:63d @ angular.min.js:59m @ angular.min.js:64(anonymous function) @ angular.min.js:305q @ angular.min.js:7(anonymous function) @ angular.min.js:305$digest @ angular.min.js:143$apply @ angular.min.js:146l @ angular.min.js:97J @ angular.min.js:102t.onload @ angular.min.js:103 angular.min.js:118 Error: [$interpolate:interr] http://errors.angularjs.org/1.5.8/$interpolate/interr?p0=%7B%7Bpost.youtube…ecurl%3Fp0%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FozXJ0QrEj2Y at Error (native) at at Function.Ka.interr () at J () at at at m.$digest () at m.$apply () at l () at J ( function) @ angular.min.js:118(anonymous function) @ angular.min.js:90J @ angular.min.js:104(anonymous function) @ angular.min.js:128(anonymous function) @ angular.min.js:127$digest @ angular.min.js:143$apply @ angular.min.js:146l @ angular.min.js:97J @ angular.min.js:102t.onload @ angular.min.js:103
I am looking for guidance on how to successfully achieve this task.