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
Yes, ng-style will work to resolve this problem. You can use conditionally style using ternary operator.
ng-style
ternary operator
HTML: