{"description":"","public":true,"created_at":"2022-10-06T19:08:25.000Z","files":["ngstyle-directive.html"],"owner":"WrittenForCoders","div":"
\n | <div [ngStyle]="{'background-color': someTrueOfFalseValue ? 'red' : 'green', 'font-weight': someOtherValue ? 'bold' : '200' }" | \n
\n | (click)="someTrueOfFalseValue = !someTrueOfFalseValue; someOtherValue = !someOtherValue"> | \n
\n | What background color do I have? | \n
\n | </div> | \n