ng-file-upload getting TypeError:使用ngf-drop进行非法调用

mar*_*ves 4 angularjs ng-file-upload

在包含使用的文件属性的模型上TypeError: Illegal invocation添加$watchwith objectEquality设置为true 时发生ngf-drop.

另据报道此处.

我怎么能$watch没有得到这个错误的模型?

ken*_*ley 5

我不得不说,不要尝试深入观察复杂的物体,这意味着:

$scope.$watch('aComplexObject', function(newVal, oldVal) {
    // ...
}, true); // <<< this 'true' may cause the error.
Run Code Online (Sandbox Code Playgroud)