I have a component that renders a form and I would like to add the ability to reset the form or validate the form when the user clicks on a button that is outside of the component. I am trying to find the best way to achieve this. I was thinking binding a resetForm attribute to the component and whenever the route controller set it to true a listener on the component would fire up the reset functionality, Anyone one else has better way of doing this?
Aucun commentaire:
Enregistrer un commentaire