docs(common): add an example how to bind multiple classes based on a single parameter (#13779)
Closes #13778
This commit is contained in:
parent
9898d8f6d9
commit
f822f9599c
|
@ -25,6 +25,8 @@ import {isPresent, stringify} from '../facade/lang';
|
||||||
* <some-element [ngClass]="{'first': true, 'second': true, 'third': false}">...</some-element>
|
* <some-element [ngClass]="{'first': true, 'second': true, 'third': false}">...</some-element>
|
||||||
*
|
*
|
||||||
* <some-element [ngClass]="stringExp|arrayExp|objExp">...</some-element>
|
* <some-element [ngClass]="stringExp|arrayExp|objExp">...</some-element>
|
||||||
|
*
|
||||||
|
* <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
|
|
Loading…
Reference in New Issue