DEV Community

Thiago
Thiago

Posted on

ERROR Error: Uncaught (in promise): Error: Expected validator to return Promise or Observable. - angular

I wrote my custom validator to check if filename is right:

Image description

And add it in this way on fb.group

Image description

And this error came up:

Image description

and fix it adding is this way:

Image description

Top comments (0)