I am trying to hide a span if the value of filters[*index*] is empty.
var span = "<span ng-style='{ 'display': filters[" + filterIndex + "] == '' ? 'none' : 'inline-block' }'></span>"
cell.html(span);
Unfortunately, it's not working as expected.
When I look at the html page, I see this:
<span ng-style="{ " display':="" filters[6]="=" ''="" ?="" 'none'="" :="" 'inline-block'="" }'=""></span>
How can I properly wrap ng-style
to achieve the desired result?