LoginSignup
0

More than 5 years have passed since last update.

IE11でStyle属性にAngularJSのExpressionを用いた表現ができない

Posted at

AngularJS×IEというオワコンオブオワコンですが備忘録として残します。

課題

IE11において、style属性にAngularJSのExpressionを用いた記述ができず、値が空として扱われてしまう。

解決策

style属性の代わりにng-attr-styleを用いる。

参考リンク

https://github.com/angular/angular.js/issues/2186
https://github.com/angular/angular.js/blob/master/docs/content/guide/ie.ngdoc
https://stackoverflow.com/questions/23610625/angular-expression-inside-style-attribute-dont-work-in-ie
https://stackoverflow.com/questions/25436055/angularjs-style-issue-ie/

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0