I have run into an issue where I need to completely destroy and remove a component within my view, because the 3rd party items in the component need a full page refresh to function correctly. The component will only update when the parent view changes to completely different view or if the page is refreshed. Is it possible to completely remove an ember component from the parent view and then rerender it with the newly updated model information from the parent view?
App.VideoPlayerComponent = Em.Component.extend({
initPlayer: function(){
//player stuff here
//updates video url yet previous video DOM garbage remains
}.observes('url'),
didInsertElement: function(){
this.initPlayer();
}
});
The video player im using is thePlatform js PDK which seems to be made for only static websites >: