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:
parent
818bb9b697
commit
726fecbfb6
|
@ -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:
|
||||
|
|
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue