vendredi 18 mars 2016

How to remove/reset ember validation in form

I have a form inside a modal, that form allows user to update each model feild and I'm also using ember-validations to validate them, but then after successful saving or when a user closes/cancel the modal the form element still contain the class has-success, has-error, has-feedback classes, so how can I reset the form fields after every successful saving/cancel?

Aucun commentaire:

Enregistrer un commentaire