Hi Filip,

<h3 [style.color]="someVar < 30 ? 'green' : 'red'>{{someOtherValue}}</h3>

or: 
<h3 [style.color]="someVar'>{{someOtherValue}}</h3>

and then in your components controller:

ngOninit() {
  this.someVar="red";
  setTimeout(() => this.someVar="green",1500)
}


Hope this helps. Use the framework, don't manipulate dom directly unless 
you have to.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to