docs(API): 翻译完了 NgStyle

This commit is contained in:
Zhicheng Wang 2018-09-02 11:31:35 +08:00
parent c448443c70
commit 63127dd0c0
2 changed files with 10 additions and 1 deletions

View File

@ -32,7 +32,7 @@
[x] | core/ElementRef | 0.67
[x] | core/OnInit | 0.66
[x] | common/UpperCasePipe | 0.65
[ ] | common/NgStyle | 0.60
[x] | common/NgStyle | 0.60
[ ] | router/RouterOutlet | 0.59
[ ] | forms/Validators | 0.59
[ ] | common/http/HttpHeaders | 0.56

View File

@ -24,10 +24,19 @@ import {Directive, DoCheck, ElementRef, Input, KeyValueChanges, KeyValueDiffer,
*
* Update an HTML element styles.
*
* HTML
*
* The styles are updated according to the value of the expression evaluation:
*
*
*
* - keys are style names with an optional `.<unit>` suffix (ie 'top.px', 'font-style.em'),
*
* key `.<unit>` 'top.px', 'font-style.em'
*
* - values are the values assigned to those properties (expressed in the given unit).
*
* value
*
*/
@Directive({selector: '[ngStyle]'})