jeudi 4 août 2016

Changing property values from within the component in Ember

I'm wondering how I'd go about dynamically editing a component property from within the component. Code might help you get a bit more clarity on what I'm trying to do.

Templates/boards.hbs

<div>
  
</div> 

Components/board-component.hbs



  <div>
    <input type="text" value=>
  </div>



  <div>
    
  </div>



Am I right in saying that standard behaviour would have the value I specify in the input reflect as the title, but due to the fact that I've declared the value in the template it reverts back to this declared value?

How can I get around this?




Aucun commentaire:

Enregistrer un commentaire