Hi All,
I have come across a handy directive to allow inline style if the angular condition is true.
This will fix any issues with style you have in IE! compared to other browsers. USE the following ng-style=“{‘width’:variable ? ‘100%’:’20%’}
Do NOT use expression in the style attribute (i.e style=" width:{{variable}}%"
or style=" width:{{var ? '':'' }}%"
There is another directive you can use called data-ng-attr-style
EXAMPLE: data-ng-attr-style=" {{ row.cells.length > 1 ? ‘width:’+(100/row.cells.length)+’%’ : ‘width:100%’ }}"
In most cases ng-attr-style will do the job!
Thanls
Ilia