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

Commit

Permalink
fix(NgStyle): make NgStyle export expressions
Browse files Browse the repository at this point in the history
Closes #993
  • Loading branch information
vicb committed May 23, 2014
1 parent 47ad9d9 commit 8470abd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/directive/ng_style.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
part of angular.directive;

/**
* The `ngStyle` directive allows you to set CSS style on an HTML element
* conditionally.
*
* @example
* <span ng-style="{color:'red'}">Sample Text</span>
*/
* The `NgStyle` directive allows you to set CSS style on an HTML element conditionally.
*
* # example
*
* <span ng-style="{color:'red'}">Sample Text</span>
*/
@Decorator(
selector: '[ng-style]',
map: const {'ng-style': '@styleExpression'})
map: const {'ng-style': '@styleExpression'},
exportExpressionAttrs: const ['ng-style'])
class NgStyle {
final dom.Element _element;
final Scope _scope;
Expand All @@ -19,7 +20,7 @@ class NgStyle {

NgStyle(this._element, this._scope);

/**
/**
* ng-style attribute takes an expression which evaluates to an
* object whose keys are CSS style names and values are corresponding values
* for those CSS keys.
Expand Down

0 comments on commit 8470abd

Please sign in to comment.