Hello,
I have an attribute on a column set to:
I want to change ${ShowDashboard} to either "display:none;" or "display:block;" based on condition.
I manually set on page load:
but when rendered:
What's the trick to making this work?
Hello,
I have an attribute on a column set to:
I want to change ${ShowDashboard} to either "display:none;" or "display:block;" based on condition.
I manually set on page load:
but when rendered:
What's the trick to making this work?
Try the following:
Set the style as an object
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!