I want to combine 2 styles in my ng-style, one of them is conditional style.
ng-style="{'height':height + '%'}"
ng-style="hasScroll !== 0 && {'width': (tableWidth) + 'px'}"
How can I combine both of them without override the width in case the condition is false?
the following isn't good since it's override 'width' property if the condition is falsefalse:
ng-style="{ 'height': height + '%', 'width': hasScroll !== 0 ? (tableWidth) + 'px' : undefined }"