Answers for "generate ngstyle"

6

ngstyle

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

ngStyle

[ngStyle]="{'background-image': 'url(' + data.headerImage + ')'}"
Posted by: Guest on January-06-2021

Browse Popular Code Answers by Language