Why this jsfiddle is not working? I am not able to get value of videoId. If I remove ngRoute from module then it is working fine.
videoId
ngRoute
You need to use ng-src like this:
ng-src
{{videoID}}
and
var app = angular.module('my-app', []); app.controller('AppController', function ($scope, $sce) { $scope.videoID = $sce.trustAsResourceUrl('http://www.youtube.com/embed/C0DPdy98e4c'); });
See this documentation.