The TypeError: Illegal invocation
occurs when adding a $watch
with objectEquality
set to true on a model which contains a file(s) property used by ngf-drop
.
Also as reported here.
How can I $watch
the model without getting this error?
I have to say, don't ever try deep watching a complex object, which means:
$scope.$watch('aComplexObject', function(newVal, oldVal) {
// ...
}, true); // <<< this 'true' may cause the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With