This is the condition I am using [class.active]="fromMode != \'manual\'" and the formMode is been intialize with manual value like this fromMod
[class.active]="fromMode != \'manual\'"
fromMod