mercredi 16 décembre 2015

Ember re render component

I have a component with a jquery menu that transforms the DOM. I need to re render the component for initiate the structure again. The jquery menu hasn't a method to work dinamically.

//Parent Component hbs

<div id="container">
    {{menu-jquery model=model}}
</div>

//Parent Component js

export default Ember.Component.extend({

   refreshMenuData(){
      callToServer()
      updateModel()
      //how to delete and create menu component? or re render menu component?
   }

}

Thanks




Aucun commentaire:

Enregistrer un commentaire