TypeError: Cannot read property 'valid' of undefined

后端 未结 5 576
执念已碎
执念已碎 2020-12-30 23:41

I have the following textarea:


5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 00:20

    I had this problem due to using ng-if. I solved it using ng-hide instead.

    ng-hide set DOM visibility false but ng-if removes DOM completely. Probably thats why angularjs can't see the form to validate when ng-if is used

提交回复
热议问题