Mr Smith
Mr Smith

Reputation: 3486

"Error: Invalid argument." on IE11

I'm getting the error listed below from Angular 1.5.7 on IE11. Angular IS NOT throwing any errors on Chrome. I tried the following:

Upvotes: 6

Views: 8487

Answers (3)

anjhinz
anjhinz

Reputation: 41

I had this problem, and it was because I was setting the content of an element in two different ways:

<span ng-bind-html="functionThatGeneratesHtml()">{{ functionThatGeneratesHtml() }}</span>

Upvotes: 0

Mr Smith
Mr Smith

Reputation: 3486

For the record, this error was being caused by the Angular Block UI directive: https://github.com/McNull/angular-block-ui . I removed that directive & the error stopped.

Upvotes: 1

adolfosrs
adolfosrs

Reputation: 9389

This is an Angular known issue as you can see in this thread.

As suggested, when using directives such as ng-placeholder or ng-style you can workaround with ng-attr-placeholder or ng-attr-style.

Upvotes: 9

Related Questions