Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config: ValdemortConfig, fb: FormBuilder) {
config.displayMode = DisplayMode.ONE;
config.shouldDisplayErrors = () => true;
this.form = fb.group({
email: ['', [Validators.required, Validators.email]],
age: [null, [Validators.required, Validators.min(18)]]
});
}
constructor(config: ValdemortConfig, fb: FormBuilder) {
config.errorsClasses = 'text-warning';
config.displayMode = DisplayMode.ONE;
config.shouldDisplayErrors = (control, form) => control.dirty;
this.form = fb.group({
email: ['', [Validators.required, Validators.email]],
age: [null, [Validators.required, Validators.min(18)]]
});
}