Open In App

Web technologies Questions | AngularJS Quiz | Set-3 | Question 12

Which below pattern is used to add up pattern (regex pattern) validator to ngModel on input HTML element?

(A)



ng-blur

(B)



ng-checked

(C)

ng-pattern

(D)

ng-readOnly

Answer: (C)
Explanation:

The ng-pattern directive in AngularJS is used to add up patterns like a regex pattern validator to ngModel on an input HTML element. It is responsible to perform the pattern validation error key if the data is not matched.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :