Setting a textfield value to empty after transitioning to a route
After I transition to a route I would like to set the textfield value to
empty.
I tried this in the controller but it isn't working:
init: function() {
this.set("filterterm", "");
}
Here is a jsbin of my example: http://jsbin.com/OcAyoYo/111/edit
If I type "5" in the text box and click submit then the results change,
but when I click All again, I would like to clear out the textfield.
No comments:
Post a Comment