Tim Blasi 329b2eda66 refactor(dart/transform tests): Use actual directive def'n instead of mock.
In the transformer unit tests, we previously used a mock directive annotation. This update
substitutes the actual Angular2 directive annotations.

Closes #706
2015-02-20 09:44:56 -08:00

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;
}
}