Created
June 29, 2017 16:27
-
-
Save stevermeister/d1d7b8d95267ba0fe504a50d8ce93369 to your computer and use it in GitHub Desktop.
This file contains 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
const myAsyncNameValidator = (control: FormControl) => { | |
const condition = !!control.value; | |
if (!condition) { | |
return Observable.of({myNameValidator: 'does not match the condition'}); | |
} | |
return Observable.of(null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment