AsyncValidatorFn vs AsyncValidator

167 views
Skip to first unread message

Long Field

unread,
Mar 6, 2019, 6:37:17 PM3/6/19
to Angular and AngularJS discussion
Hi All
Notice there are two interface for AsyncValidator what's difference?

Cheers!

Tito

unread,
Mar 6, 2019, 9:23:11 PM3/6/19
to Angular and AngularJS discussion

Long Field

unread,
Mar 7, 2019, 4:01:53 AM3/7/19
to Angular and AngularJS discussion

Long Field

unread,
Mar 7, 2019, 4:03:54 AM3/7/19
to Angular and AngularJS discussion

Check this:
https://twitter.com/LongLongfld/status/1103447650597138433

Using AsyncValidatorFn we create asynchronous (async) validator functions that is used with FormControl in reactive form. 

Using AsyncValidator we create async validator directive. NG_ASYNC_VALIDATORS is used as provider with multi: true in our async validator directive.
Reply all
Reply to author
Forward
0 new messages