DEV Community

Discussion on: Parametrized Validators in Dynamic Forms

Collapse
 
artem_shapilov profile image
Artem Shapilov

Is it required to register validators on the module level? Does this approach has advantages over providing validators inline when creating config? e.g. when doing createMatConfig()

Collapse
 
matheo profile image
Mateo Tibaquirá

while implementing matchers it was convenient to have inline functions, and in general they are nicer to implement a fast prototype without having to provide anything at module level.
I might update this article to include the inline functions in the notation. Thanks!