Activation of validation Angular FormGroup

-1

Hello, I have a form using formGroup!

When I click the confirm button it does not perform the validations, without any reaction in the fields ... so ...

However,IwishthatwhenIclickedthisbutton,itvalidatesthefieldsandreturnstheerrormessages...so...

HereistheformGroupcodeandthehtlmbuttoncall

    
asked by anonymous 11.04.2018 / 19:28

1 answer

2

In the button do so

<button [disabled]="myForm.invalid" .../>
    
12.04.2018 / 10:02