Using the @bindable attribute on child class in Aurelia
问题 For the current project at work, we are creating quite a few custom controls that all share the same properties and that are bindable. @bindable required: boolean = false; @bindable minLength: number = 0; @bindable maxLength: number = 0; Since we'd like to avoid code duplication, the idea is to keep these bindable properties in a separate class, called 'Validation' in this case. import {Validation} from "./validation"; export class MyClass { private validation: Validation = new Validation();