Answers for "ng style example"

6

ngstyle

<div [ngStyle]="{'background-color':person.country === 'UK' ? 'green' : 'red' }"></<div>
Posted by: Guest on August-08-2020
0

ng style

<some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
Posted by: Guest on January-02-2021

Browse Popular Code Answers by Language