Color cannot be changed with ngClass using bootstrap class "text-white".
Code:
[ngClass] = "{'text-white': log >= 5}"
Demo Your syntax is correct if log is a number. Firstly check if it is number then be sure that class has style attribute in css in application
in your component css add this to check
.text-white{
color:white;
}