How Can Clear Form Data In Ember Js
Hi i am very new to ember js. i wrote a form for new employee entry.and send data through route.Data saved successfully. But the problem is after form submission my form data not c
Solution 1:
You have to do it inside the controller like this:
var controller = this;
//After saving the form to the server:
...then(function(){
controller.set('YourFormData', '');
});
Your Form Data has to be a property with binding in the controller like your id,name and designation.
Post a Comment for "How Can Clear Form Data In Ember Js"