In the transformer unit tests, we previously used a mock directive annotation. This update substitutes the actual Angular2 directive annotations. Closes #706
		
			
				
	
	
		
			14 lines
		
	
	
		
			327 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			327 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| library bar;
 | |
| 
 | |
| import 'package:angular2/src/core/annotations/annotations.dart';
 | |
| import 'foo.dart' as prefix;
 | |
| 
 | |
| @Component(selector: prefix.preDefinedSelector)
 | |
| class MyComponent {
 | |
|   final prefix.MyContext c;
 | |
|   final String generatedValue;
 | |
|   MyComponent(this.c, String inValue) {
 | |
|     generatedValue = 'generated ' + inValue;
 | |
|   }
 | |
| }
 |