AngularJS video src url - Error: $interpolate:interr
HTML
<source ng-src="{{voiceUrl(sound.src)}}" type="audio/mpeg">
JS
//过滤音频地址使其可用
$scope.voiceUrl = function(url){
return $sce.trustAsResourceUrl(url);
};
<source ng-src="{{voiceUrl(sound.src)}}" type="audio/mpeg">
//过滤音频地址使其可用
$scope.voiceUrl = function(url){
return $sce.trustAsResourceUrl(url);
};