exported from <a href='../directives'>angular2/directives</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/directives/ng_style.ts#L7-L62">angular2/src/directives/ng_style.ts (line 7)</a>
:markdown
Adds or removes styles based on an {expression}.
When the expression assigned to `ng-style` evaluates to an object, the corresponding element
styles are updated. Style names to update are taken from the object keys and values - from the
corresponding object values.
# Example:
```
<div ng-style="{'text-align': alignEpr}"></div>
```
In the above example the `text-align` style will be updated based on the `alignEpr` value