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

Commit

Permalink
fix(ng-class): exportExpressionAttrs for ng-class, ng-class-odd, ng-c…
Browse files Browse the repository at this point in the history
…lass-even
  • Loading branch information
pavelgj committed Nov 21, 2013
1 parent e38da6f commit cecf3b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/directive/ng_class.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ part of angular.directive;
*/
@NgDirective(
selector: '[ng-class]',
map: const {'ng-class': '@valueExpression'})
map: const {'ng-class': '@valueExpression'},
exportExpressionAttrs: const ['ng-class'])
class NgClassDirective extends _NgClassBase {
NgClassDirective(dom.Element element, Scope scope, NodeAttrs attrs)
: super(element, scope, null, attrs);
Expand Down Expand Up @@ -81,7 +82,8 @@ class NgClassDirective extends _NgClassBase {
*/
@NgDirective(
selector: '[ng-class-odd]',
map: const {'ng-class-odd': '@valueExpression'})
map: const {'ng-class-odd': '@valueExpression'},
exportExpressionAttrs: const ['ng-class-odd'])
class NgClassOddDirective extends _NgClassBase {
NgClassOddDirective(dom.Element element, Scope scope, NodeAttrs attrs)
: super(element, scope, 0, attrs);
Expand Down Expand Up @@ -115,7 +117,8 @@ class NgClassOddDirective extends _NgClassBase {
*/
@NgDirective(
selector: '[ng-class-even]',
map: const {'ng-class-even': '@valueExpression'})
map: const {'ng-class-even': '@valueExpression'},
exportExpressionAttrs: const ['ng-class-even'])
class NgClassEvenDirective extends _NgClassBase {
NgClassEvenDirective(dom.Element element, Scope scope, NodeAttrs attrs)
: super(element, scope, 1, attrs);
Expand Down

0 comments on commit cecf3b6

Please sign in to comment.