Avoid lint warning:
"In the class "NotBeforeMomentValidatorDirective", the directive input
property "egNotBeforeMoment" should not be renamed."
Signed-off-by: Bill Erickson <berickxx@gmail.com>
}]
})
export class NotBeforeMomentValidatorDirective {
- @Input('egNotBeforeMoment') egNotBeforeMoment: Moment;
+ @Input('egNotBeforeMoment') notBeforeMoment: Moment;
validate(control: AbstractControl): {[key: string]: any} | null {
- return this.egNotBeforeMoment ?
- notBeforeMomentValidator(this.egNotBeforeMoment)(control)
+ return this.notBeforeMoment ?
+ notBeforeMomentValidator(this.notBeforeMoment)(control)
: null;
}
}