Closed saicharanbollampally closed 5 years ago
You mixed embed
and embed_image
usage.
embed
function doesn't have callback.
this.iframeURL = this.embedService.embed(this.exercise.YoutubeUrl, {
query: { portrait: 0, color: 'black' },
attr: { width: 800, height: 380, frameborder:1 }
});
this.embedService.embed(this.exercise.YoutubeUrl, { query: { portrait: 0, color: 'black' }, attr: { width: 800, height: 380, frameborder:1 } }).then(res => { this.iframeURL = res.html; });
Error: this.embedService.embed(...).then is not a function