FAQ Database Discussion Community

Aurelia Validation validation error detected, but no error message

I have a super simple code I'm trying to validate: <template> <form role="form" submit.delegate="submit()" validate.bind="validation"> <div class="form-group"> <label>Test Field</label> <input type="text" value.bind="testField" class="form-control" validate="Description" placeholder="What needs to be done?" /> <button type="submit">Submit</button> </div> </form> </template> With the following viewmodel define(["require", "exports", "../scripts/HttpClient",...

How to use aurelia-validate with a object properties to validate?

I'm using aurelia-validate and my validation works fine if I use variables, but I need it to validate properties of an object rather than a variable: Here's what works: import {Validation} from 'aurelia-validation'; import {ensure} from 'aurelia-validation'; import {ItemService} from './service'; export class EditItem { static inject() { return [Validation,...