I want to get the value of the textarea to use inside my route. I tried using the method below, but the alert shows 'undefined' for that value. How would I go about getting the value of the textarea from the route? I am running the latest version of ember-cli.
Template
{{textarea type="text" value='name'}}
<button {{action 'submit'}} >Send</button>
Route
actions: {
submit: function() { alert(this.get('name'));
} }
Aucun commentaire:
Enregistrer un commentaire