<iframe width="100%" height="650px" src="https://www.youtube.com/embed/{{institucional.video}}"frameborder="0" allowfullscreen></iframe>
The problem is that it gives interpolation error: This error occurs when interpolation fails due to some exception.
With the codes below, it simply does not show ng-src when I command to inspect element
<iframe width="100%" height="650px" ng-src="{{trustSrc('https://www.youtube.com/embed/' + vm.video)}}" frameborder="0" allowfullscreen></iframe>
vm.Institucional = function () {
InstitucionalService.buscaInstitucional().then(function (response) {
if (response.data != 0) {
vm.mostraInstitucional = response.data;
vm.video = $sce.trustAsResourceUrl(response.data[0].video);
} else {
vm.mostraInstitucional = '';
}
}, function (error) {
console.error(error);
});
}