阅读背景:

为什么我在angularJS指令的链接函数上得到一个未定义的scope.ngModel

来源:互联网 

I have an angularJS directive for a masked input, that when a certain condition is met, I want to remove the mask. I was getting errors for the scope.ngModel being undefined in the code, however when I did a console.log(scope.ngModel) I was getting a value. I decided to put in a watch and surprisingly it seems that the ngModel goes through several assignment iterations before getting the actual model value.I have an angularJS directive for a masked inpu




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

分享到: