Attribute Value variable

Hello,

I have an attribute on a column set to:

image

I want to change ${ShowDashboard} to either "display:none;" or "display:block;" based on condition.

I manually set on page load:

but when rendered:
image

What's the trick to making this work?

Try the following:

  1. Set the style as an object

  2. Use [ngStyle] instead of style. Angular treats style in a special way hence the need of a different directive.

Perfect, works as expected. Thanks again for all your help!