| OLD | NEW |
| (Empty) | |
| 1 library angular.tools.common; |
| 2 |
| 3 class DirectiveInfo { |
| 4 String selector; |
| 5 String template; |
| 6 List<String> expressionAttrs = <String>[]; |
| 7 List<String> expressions = <String>[]; |
| 8 DirectiveInfo([this.selector, this.expressionAttrs, this.expressions]) { |
| 9 if (expressionAttrs == null) { |
| 10 expressionAttrs = <String>[]; |
| 11 } |
| 12 if (expressions == null) { |
| 13 expressions = <String>[]; |
| 14 } |
| 15 } |
| 16 } |
| 17 |
| 18 const String DIRECTIVE = 'DIRECTIVE'; |
| 19 const String COMPONENT = 'COMPONENT'; |
| 20 |
| 21 class DirectiveMetadata { |
| 22 String className; |
| 23 String type; // DIRECTIVE/COMPONENT |
| 24 String selector; |
| 25 String template; |
| 26 Map<String, String> attributeMappings; |
| 27 List<String> exportExpressionAttrs; |
| 28 List<String> exportExpressions; |
| 29 |
| 30 DirectiveMetadata([this.className, this.type, this.selector, |
| 31 this.attributeMappings, this.exportExpressionAttrs, |
| 32 this.exportExpressions]) { |
| 33 if (attributeMappings == null) { |
| 34 attributeMappings = <String, String>{}; |
| 35 } |
| 36 if (exportExpressions == null) { |
| 37 exportExpressions = <String>[]; |
| 38 } |
| 39 if (exportExpressionAttrs == null) { |
| 40 exportExpressionAttrs = <String>[]; |
| 41 } |
| 42 } |
| 43 } |
| 44 |
| OLD | NEW |