Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit dc523e5

Browse files
vicbchirayuk
authored andcommitted
fix(NgStyle): make NgStyle export expressions
Closes #993
1 parent eced999 commit dc523e5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Diff for: lib/directive/ng_style.dart

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
part of angular.directive;
22

33
/**
4-
* The `ngStyle` directive allows you to set CSS style on an HTML element
5-
* conditionally.
6-
*
7-
* @example
8-
* <span ng-style="{color:'red'}">Sample Text</span>
9-
*/
4+
* The `NgStyle` directive allows you to set CSS style on an HTML element conditionally.
5+
*
6+
* # example
7+
*
8+
* <span ng-style="{color:'red'}">Sample Text</span>
9+
*/
1010
@Decorator(
1111
selector: '[ng-style]',
12-
map: const {'ng-style': '@styleExpression'})
12+
map: const {'ng-style': '@styleExpression'},
13+
exportExpressionAttrs: const ['ng-style'])
1314
class NgStyle {
1415
final dom.Element _element;
1516
final Scope _scope;
@@ -19,7 +20,7 @@ class NgStyle {
1920

2021
NgStyle(this._element, this._scope);
2122

22-
/**
23+
/**
2324
* ng-style attribute takes an expression which evaluates to an
2425
* object whose keys are CSS style names and values are corresponding values
2526
* for those CSS keys.

0 commit comments

Comments
 (0)