How to use the aurelia-validation.Validator function in aurelia-validation

To help you get started, we’ve selected a few aurelia-validation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SpoonX / aurelia-orm / dist / native-modules / aurelia-orm.js View on Github external
function validation() {
  var ValidatorClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _aureliaValidation.Validator;

  return function (target) {
    OrmMetadata.forTarget(target).put('validation', ValidatorClass);
  };
}
github SpoonX / aurelia-orm / dist / commonjs / aurelia-orm.js View on Github external
function validation() {
  var ValidatorClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _aureliaValidation.Validator;

  return function (target) {
    OrmMetadata.forTarget(target).put('validation', ValidatorClass);
  };
}
github aurelia / validatejs / dist / commonjs / aurelia-validatejs.js View on Github external
function configure(config) {
  config.container.registerInstance(_aureliaValidation.Validator, new Validator());
}