Used Youtube API's eventListener Bindings to reduce memory leak. Previously the entire scope of the angular application would not get garbage collected when events were bound during instantiation of the player object. Switching to the API .addEventListener fixed this issue.
Used Youtube API's eventListener Bindings to reduce memory leak. Previously the entire scope of the angular application would not get garbage collected when events were bound during instantiation of the player object. Switching to the API
.addEventListener
fixed this issue.https://developers.google.com/youtube/iframe_api_reference