我正在尝试将角度 ngRepeat 与 html5 音频标签一起使用。我有html:
<li ng-repeat="recordings in recordinglist">
<audio controls ng-src="{{recordings}}"></audio>
</li>
和js:
$scope.$apply($scope.recordinglist.push("blob:http%3A//localhost%3A9000/67ecfa65-3394-45a6-8f29-42f3421a2727"));
但是 Angular 的同源检查导致插值错误:
Error: [$interpolate:interr] Can't interpolate: {{recordings}}
Error: [$sce:insecurl] Blocked loading resource from url not allowed by $sceDelegate policy. URL: blob:http%3A//localhost%3A9000/67ecfa65-3394-45a6-8f29-42f3421a2727
这似乎很愚蠢。它不是插入本地资源。我想有一种方法可以正确地做到这一点 - 或者我应该提交错误报告吗?