I created a directive to add a youtube video, title and description
Title and description work fine but i cant the video to work.
Not Found Can't interpolate: {{video}} Error: [$sce:insecurl] Blocked loading resource from url not allowed by $sceDelegate policy. URL: https://www.youtube.com/embed/oHg5SJYRHA0
I tried using
scope.video = $sce.trustAsResourceUrl(attrs.video);
but still no luck
i have plunker example
http://plnkr.co/edit/EVGnYYdVR5Q5BWEsQVrl?p=preview
Any ideas?
Thank you