Aurelia-Validation without validatejs

In the Github-docs of aurelia-validatejs I read that the aurelia-validation package now provides all features out of the box:

This library has been deprecated. The aurelia-validation library now contains all the components necessary for validation out-of-the-box.

Unfortunately I cannot find any documentation about the “new” validation functions and I have no experience with aurelia-validation because until now I used jquery-validation.

Does anyone have a good documentation for the validation part? I’m especially interested in validation using annotations/decorators like:

export class User{
    @bindable
    @required("message")
    firstName: string;
}
2 Likes

I’m not sure that decorators work with the the new librabry. The docs for it are here https://aurelia.io/docs/plugins/validation#validation-controller. It has a few quirks (imo), but works pretty well.