Hi i have a simple code that updates a component's property value e.g. with a button click, and based on that value i need to update the value
of the input text, like so:
template:{{input value=myValue type="text" }}
<button {{action "update"}}>update</button>
component.js:myValue: Ember.computed("product", function(){
if(this.get("product")) {
return this.get("product");
}
}),
actions:
update(){ this.set('product', 'new value')}
But although, the "product" property is updated , the input value stays the same,
computed
function is not triggered.
<input>
after button click, should be:
Am i missing anything?