Angular js IE11 Error - Invalid Argument

I have an error in my angular project only in IE, see question below:

Error: Invalid argument.
   at interpolateFnWatchAction (http://localhost:51051/scripts/angular.js:6898:19)
   at Scope.prototype.$digest (http://localhost:51051/scripts/angular.js:12395:23)
   at Scope.prototype.$apply (http://localhost:51051/scripts/angular.js:12660:13)
   at done (http://localhost:51051/scripts/angular.js:8272:34)
   at completeRequest (http://localhost:51051/scripts/angular.js:8477:7)
   at xhr.onreadystatechange (http://localhost:51051/scripts/angular.js:8416:11)

I have some placeholders on some pages, I tried to remove them, but the problem is still happening.

Any ideas?

thank

+4
source share
1 answer

I got the same error in the following cases: both where the problem code was executed as part of the XHR callback:

  • setting $ scope variables
  • using jQuery to do DOM manipulations

I solved 1 by moving / dropping the installation code to a different code location and 2 by wrapping the problem code when calling angular $ timeout.

0
source

All Articles