I'm currently facing an issue while trying to incorporate a video element into my Angular JS app. The ng-src is not recognizing the scope variable that I have set.
The version of AngularJS I am using is 1.2.0-rc.2
<!DOCTYPE html>
<html ng-app="ngView">
<head>
<script src="http://code.angularjs.org/1.2.0-rc.2/angular.min.js"></script>
<script>
var app = angular.module('ngView', []);
function MyControl($scope){
$scope.file = '1234.mp4';
}
</script>
</head>
<body ng-controller="MyControl">
<video controls ng-src="http://www.thebigdot.com/{{file}}"></video>
</body>
</html>
Interestingly, if I switch to an older version of AngularJS library like cdnjs.cloudflare.com/ajax/libs/angular.js/1.0.3/angular.min.js, it works perfectly fine.
So, I’m left wondering whether this is a bug in the latest release or if there has been a deliberate change made to disable this feature. Any ideas on what could be causing this and how to work around it?