# Handling Validation Events

The `vue-form-generator` component emits a validated event, if validation is executed.

The event parameters are: `isValid: boolean, errors: Array`.

## Example:

You can create a method to handle this event and bind it like this:

```markup
<vue-form-generator @validated="onValidated" />
```

```javascript
methods: {
  onValidated(isValid, errors) {
   console.log("Validation result: ", isValid, ", Errors:", errors);
  }
}
```
