Last active
September 20, 2019 12:46
-
-
Save CharlieGreenman/d87406b87ef57a824c0efc3171761482 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constructor(private fb: FormBuilder, | |
private loanAmountValidatorService: LoanAmountValidatorService) { } | |
ngOnInit() { | |
this.newsletterForm = this.fb.group({ | |
email: ['', [Validators.required, Validators.email]], | |
}, {validators: this.loanAmountValidatorService.loanAmountValidator}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment