Skip to content

Conversation

@holmesadrianh-shared
Copy link

This simple fix allows the video id to be changed dynamically, such as a reactive property in angular.

@holmesadrianh-shared
Copy link
Author

@paulirish , thank you for this youtube web component. Do you think this fix is worthwhile? The use case we have is we want to follow angular standards in the template files, but this does not work with the LYT embed. This is because the connectionCallback is triggered before angular events. And since the videoId is reactive, this web component sees it as null on page load. This causes an error. It would be ideal that the video id supported reactive values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants