کد را در کلیپ برد کپی کنید

Try leaving the first input field blank:

Name: The name is required.

Address:

We use the ng-show directive to only show the error message if the field has been touched AND is empty.