Reputation: 7448
I have a problem I can't seem to understand.
In IE8 the directive ng-style doesn't seem to work at all. I'm using it to set the width of an element. On all other browsers it works fine.
On IE8, inspecting the element with the crappy F12 tool, the style property is entirely missing.
Anyone can tell me if there's a workaround? The angularjs version I'm using is the stable version at the time of writing (1.0.2)
Thanks
Upvotes: 4
Views: 5568
Reputation: 14400
Ok I found why {{ }} wasn't working in IE7: you have to polyfill JSON.stringify because it's used to display objects and IE7 don't have it, if you display a string it's working:
More info on IE7 compat: http://docs.angularjs.org/guide/ie
JSON script: https://github.com/douglascrockford/JSON-js/blob/master/json2.js
Upvotes: 2