I'm struggling with this. I would like to pass a select value from template to component. Here is my template
<select name="bank" class="form-control" id="sel1" onchange=>
<option value=></option>
</select>
And here is my component
actions: {
updateValue: function(bank) {
this.set('bank.id', bank);
},
login() {
console.log(this.get('bank.id'));
}
And i've got this beautiful error : Property set failed: object in path "bank" could not be found or was destroyed.
Any idea ? Thanks
Aucun commentaire:
Enregistrer un commentaire