jxnblk / plangular

Create custom SoundCloud players with HTML & CSS
http://jxnblk.github.io/plangular
480 stars 93 forks source link

Method to reinitalize plangular from view #64

Closed phil-hudson closed 9 years ago

phil-hudson commented 9 years ago

Hey man,

Is there a way that I can reinit plangular to pull new data from Soundcloud in without changing view, playlists or reloading please?

I've hacked it so far that I can be notified in the directive if it needs to reload, but cannot actually reload it.

E.g. the trackData permalink changes in the scope in the view, but plangular does not update.

What would you recommend please?

Thanks

  scope.$on('trackDataChange', function(e, trackData){
      console.log('change in directive');
      plangular.init();
    });