Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

What is the difference between required and ng-required (form validation)?

1 Answer

0 votes
by (106k points)

The difference between required and ng-required is as follows:-

AngularJS form elements look for the required attribute to perform validation functions. ng-required allows you to set the required attribute depending on a boolean test.

As an example, <input required> and <input ng-required="true"> are essentially the same thing

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...