ngClass

< p [ngClass] = " ' first second' " > ... </ p > < p [ngClass] = " ['first', 'second'] " > ... </ p > < p [ngClass] = " {'first': true, 'second': false} " > ... </ p > < p [ngClass] = " stringExp|arrayExp|objExp " > ... </ p > < p [ngClass] = " {'class1 class2 class3' : true} " > ... </ p >