doc(NgStyle): fix missing []

Closes #3711
This commit is contained in:
Victor Berchet 2015-08-18 16:47:06 -07:00
parent ccfadb9b47
commit f0e7f13f30
1 changed files with 4 additions and 4 deletions

View File

@ -14,16 +14,16 @@ import {Renderer} from 'angular2/src/render/api';
* # Example:
*
* ```
* <div ng-style="{'text-align': alignEpr}"></div>
* <div [ng-style]="{'text-align': alignExp}"></div>
* ```
*
* In the above example the `text-align` style will be updated based on the `alignEpr` value
* In the above example the `text-align` style will be updated based on the `alignExp` value
* changes.
*
* # Syntax
*
* - `<div ng-style="{'text-align': alignEpr}"></div>`
* - `<div ng-style="styleExp"></div>`
* - `<div [ng-style]="{'text-align': alignExp}"></div>`
* - `<div [ng-style]="styleExp"></div>`
*/
@Directive({
selector: '[ng-style]',