Search
 
SCRIPT & CODE EXAMPLE
 

HTML

change css angular binding

<div [style.background-color]="activity.status == 'Pending' ? 'red' : 'green'"></div>

<div [ngStyle]="{'backgroundColor': activity.status == 'Pending' ? 'red' : 'green' }"></div>
Comment

PREVIOUS NEXT
Code Example
Html :: html 2 classes 
Html :: how to put a name on a fieldset 
Html :: what is markup in html 
Html :: HTML5 Video tag not working in Safari , iPhone and iPad 
Html :: html hex color 
Html :: tailwind css forms 
Html :: Copyright code 
Html :: the function tag in js 
Html :: data-slide-to dynamic angular 
Html :: html set all text size 
Html :: how to make email required in html 
Html :: happy birthday code in html 
Html :: divs html 
Html :: viñetas html 
Html :: smarty print html 
Html :: how to make text in html 
Html :: javascript display with fade 
Html :: fork me github code 
Html :: input hidden selected 
Html :: <figure html 
Html :: html.beginform with form id 
Html :: how to put the heading in th ecenter of th html page 
Html :: twig format 
Html :: horizontal line in table 
Html :: lang element html 
Html :: Bootstrap Text Colors Example 
Html :: jquery radio button checked on page load 
Html :: thymeleaf for each limit size 
Html :: how to run html on visual studio code 
Html :: twig currency symbol 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =