Manipulating inline style with angular does not work in IE

后端 未结 3 1495
傲寒
傲寒 2020-12-06 04:05

I wanted to set the position of a div based on the return value of a function in an angular controller

The following works fine in FireFox and in chrome but in Inter

3条回答
  •  离开以前
    2020-12-06 05:06

    Yes, ng-style will work to resolve this problem. You can use conditionally style using ternary operator.

    HTML:

提交回复
热议问题