@narik/custom-validators
Version:
Framework to create angular application
17 lines (16 loc) • 856 B
TypeScript
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { Validator, AbstractControl } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class NotMatchingValidator implements Validator, OnInit, OnChanges {
notMatching: string | RegExp;
private validator;
private onChange;
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
validate(c: AbstractControl): {
[key: string]: any;
};
registerOnValidatorChange(fn: () => void): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NotMatchingValidator, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NotMatchingValidator, "[notMatching][formControlName],[notMatching][formControl],[notMatching][ngModel]", never, { "notMatching": { "alias": "notMatching"; "required": false; }; }, {}, never, never, false, never>;
}