title: Cannot call method 'trustAsResourceUrl' of undefined
body: <p>I'm using angular to display an iframe of Youtube. In order to, I've used $sce to trust external URL but I've got an error that I can't solve... Maybe someone could explain it to me</p>
  
  <p>Controller.js</p>
  
  <pre><code>.controller('DetailsCtrl', ['$scope', '$routeParams', '$http',
      function($scope, $routeParams, $http, $sce) {
          $scope.loading = true;
        $scope.url = $sce.trustAsResourceUrl('//www.youtube.com/embed/4wOoLLDXbDY');
          $http.get('projects/' + $routeParams.projectId + '.json').success(function(data) {
            $scope.project = data;
            $scope.loading = false;
          });
      }]);
  </code></pre>
  
  <p>Details.html</p>
  
  <pre><code>&lt;iframe width="560" height="315" ng-src"{{url}}" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Error in Console</p>
  
  <pre><code>TypeError: Cannot call method 'trustAsResourceUrl' of undefined
      at new &lt;anonymous&gt; (http://localhost:9000/scripts/controllers/details.js:22:25)
      at invoke (http://localhost:9000/bower_components/angular/angular.js:3869:17)
      at Object.instantiate (http://localhost:9000/bower_components/angular/angular.js:3880:23)
      at http://localhost:9000/bower_components/angular/angular.js:7134:28
      at link (http://localhost:9000/bower_components/angular-route/angular-route.js:913:26)
      at nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:6579:13)
      at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:5986:15)
      at publicLinkFn (http://localhost:9000/bower_components/angular/angular.js:5891:30)
      at boundTranscludeFn (http://localhost:9000/bower_components/angular/angular.js:6005:21)
      at controllersBoundTransclude (http://localhost:9000/bower_components/angular/angular.js:6600:18) &lt;div ng-view="" class="ng-scope"&gt;     
  </code></pre>