Answers for "[ngStyle]="{'display':isShown?'block':'none'}{'height':isShown?'20px':'0px'}""

6

ngstyle

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

ngstyle

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

Code answers related to "[ngStyle]="{'display':isShown?'block':'none'}{'height':isShown?'20px':'0px'}""

Browse Popular Code Answers by Language