It sets the pattern validation key if input field data does not match a RegularExpression that is bind to ng-pattern directive(re).
ng-pattern