Answers for "angular access [ngstyle] in css"

8

ngstyle

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

ngstyle

[ngStyle]="{'opacity': is_mail_sent ? '0.5' : '1' }"
Posted by: Guest on October-14-2021

Browse Popular Code Answers by Language