阅读背景:

在以编程方式更改模型时,AngularJS自定义验证不会触发

来源:互联网 

I have created a custom validator for requiring a date to be in the past. The validation seems to work great when entering the date manually into the field. However, if I enter change the date programmatically (change the model directly as opposed to typing in the field), the validation does not fire. I have created a custom validator for requiring




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: