How to apply Multiple ng-pattern with one input control

后端 未结 5 583
甜味超标
甜味超标 2021-01-01 05:30

I am trying to Validate Postal code and Phone Number in Text box using Angularjs. But it\'s not working

 

        
5条回答
  •  感情败类
    2021-01-01 05:51

    I think you need to wrap a ng-form around your input. And then you can use [formName].postalCode.$error

提交回复
热议问题