ngx-custom-validators-angular-14
Version:
Angular custom directives for validation
17 lines (16 loc) • 816 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": "notMatching"; }, {}, never, never, false>;
}