Well, I'm currently working on decorators for aurelia validation.
At the moment, I have the following code working:
export class ClientViewModel {
public Id: string;
@required()
public Name: string;
@displayName("Identity")
@email("It's not an valid email")
@satisfiesRule("cpfcnpj")
@required()
public PersonIdentity: string;
constructor(data: any = {}) {
this.Id = data.Id || null;
this.Name = data.Name || null;
this.PersonIdentity = data.PersonIdentity || null;
}
}
After I'm done, would you guys be interested in accept a PR?
Well, I'm currently working on decorators for aurelia validation.
At the moment, I have the following code working:
After I'm done, would you guys be interested in accept a PR?