Answers for "ngstyle in angular"

6

ngstyle

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

ngStyle

<div [ngStyle]="{'background-color':'green'}"></<div>
Posted by: Guest on July-09-2021
1

ngstyle

<some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
Posted by: Guest on March-05-2021
1

ngStyle

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

ngstyle

content_copy
      
      <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
Posted by: Guest on October-26-2020
0

ngstyle

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

Browse Popular Code Answers by Language