我想在每次输入类型'file'更改时调用validateFormat()函数。注意,自定义指令是使用'file-model'
如果我尝试添加'ng-change="validateFormat()' '作为输入,控制台打印如下错误:no controller: ngModel。
如何将此元素绑定到ng-change?
我想在每次输入类型'file'更改时调用validateFormat()函数。注意,自定义指令是使用'file-model'
如果我尝试添加'ng-change="validateFormat()' '作为输入,控制台打印如下错误:no controller: ngModel。
如何将此元素绑定到ng-change?