File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
part of angular.directive;
2
2
3
3
/**
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
+ */
10
10
@Decorator (
11
11
selector: '[ng-style]' ,
12
- map: const {'ng-style' : '@styleExpression' })
12
+ map: const {'ng-style' : '@styleExpression' },
13
+ exportExpressionAttrs: const ['ng-style' ])
13
14
class NgStyle {
14
15
final dom.Element _element;
15
16
final Scope _scope;
@@ -19,7 +20,7 @@ class NgStyle {
19
20
20
21
NgStyle (this ._element, this ._scope);
21
22
22
- /**
23
+ /**
23
24
* ng-style attribute takes an expression which evaluates to an
24
25
* object whose keys are CSS style names and values are corresponding values
25
26
* for those CSS keys.
You can’t perform that action at this time.
0 commit comments