Using "Validators.requiredTrue" in a angular template driven form

Discussão em 'Angular' iniciado por Jean Pacher, Novembro 13, 2024.

  1. Jean Pacher

    Jean Pacher Guest

    I need to validate that a user has checked a "TOS" checkbox before allowing their registration. I would like to use the requiredTrue validator for doing it, but I can't find in the docs a way of using this validator in a template driven form. Is it possible? If so, could you provide an example?

    Continue reading...

Compartilhe esta Página