mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-13 08:56:40 +08:00
docs(ngClass): clarify the use of object map
This commit is contained in:
committed by
Pete Bacon Darwin
parent
4fd057e7c7
commit
8eb8c4a32f
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user