mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 23:34:42 +00:00
docs(ngClass): clarify the use of object map
This commit is contained in:
parent
4fd057e7c7
commit
8eb8c4a32f
1 changed files with 3 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ function classDirective(name, selector) {
|
||||||
* @element ANY
|
* @element ANY
|
||||||
* @param {expression} ngClass {@link guide/expression Expression} to eval. The result
|
* @param {expression} ngClass {@link guide/expression Expression} to eval. The result
|
||||||
* of the evaluation can be a string representing space delimited class
|
* 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
|
||||||
<example>
|
<example>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue