docs(ngClass): clarify the use of object map

This commit is contained in:
Luc Morin 2013-05-27 21:34:12 -03:00 committed by Pete Bacon Darwin
parent bc36c4dea4
commit 944bda12c7

View file

@ -73,7 +73,9 @@ function classDirective(name, selector) {
* @element ANY
* @param {expression} ngClass {@link guide/expression Expression} to eval. The result
* of the evaluation can be a string representing space delimited class
* names, an array, or a map of class names to boolean values.
* names, an array, or a map of class names to boolean values. In the case of a map, the
* names of the properties whose values are truthy will be added as css classes to the
* element.
*
* @example
<example>