docs(common): add an example how to bind multiple classes based on a single parameter (#13779)

Closes #13778
This commit is contained in:
Dzmitry Shylovich 2017-01-05 21:21:38 +03:00 committed by Igor Minar
parent 9898d8f6d9
commit f822f9599c
1 changed files with 2 additions and 0 deletions

View File

@ -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