Sanity Check: aurelia-validation ValidationController.errors


#1

I am new with Aurelia and I am trying to use aurelia-validation.

After calling the validate() method on the ValidationController, the result object seems to be missing the errors array which is documented here: http://aurelia.io/docs/plugins/validation#displaying-errors

The result object does contain these properties: instruction:any, results:ValidateResult[], valid: boolean.

Is this a bug in the documentation or should I be seeing this property?

Thanks


#2

What does your code for setting up the validation in your view model look like?
And have you added “& validate” for the values on the input elements like this:

<input value.bind="myVar & validate"/>

?