This will ensure that assistive technologiessuch as screen readerswill announce this help text when the user focuses or enters the control. bellow simple solution: <div *ngIf="form.get ('name').hasError ('required') && myform.submitted" class='alert alert-danger'> Name is required </div> Now we will see full example then you can understand how it works. For custom Bootstrap form validation messages, youll need to add the novalidate boolean attribute to your
Los comentarios están cerrados.