feat(dart/transform): Turn on transform for examples/todo

- Tag services with `@Injectable()`
- Update `pubspec.yaml` to transform examples/todo.

Closes #1527
This commit is contained in:
Tim Blasi 2015-04-24 10:45:10 -07:00 committed by Misko Hevery
parent 818bb9b697
commit 726fecbfb6
2 changed files with 9 additions and 2 deletions

View File

@ -16,8 +16,12 @@ dev_dependencies:
path: ../benchpress
transformers:
- angular2:
entry_points: web/src/hello_world/index_common.dart
reflection_entry_points: web/src/hello_world/index.dart
entry_points:
- web/src/hello_world/index_common.dart
- web/src/todo/index.dart
reflection_entry_points:
- web/src/hello_world/index.dart
- web/src/todo/index.dart
- $dart2js:
minify: false
commandLineOptions:

View File

@ -1,3 +1,4 @@
import {Injectable} from 'angular2/di';
import {ListWrapper} from 'angular2/src/facade/collection';
// base model for RecordStore
@ -19,6 +20,7 @@ export class Todo extends KeyModel {
}
}
@Injectable()
export class TodoFactory {
_uid: number;
@ -37,6 +39,7 @@ export class TodoFactory {
}
// Store manages any generic item that inherits from KeyModel
@Injectable()
export class Store {
list: List<KeyModel>;