chore(example): fix TODO example on dart

Reflection for Dart was not set up properly for the TODO example,
so it was failing when served on dartium via
gulp serve/examples.dart
This commit is contained in:
Julie Ralph 2015-04-21 10:17:26 -07:00
parent f7f06c5ad4
commit fa1ec48549
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
import {bootstrap, Component, View, For} from 'angular2/angular2';
import {Store, Todo, TodoFactory} from './services/TodoStore';
import {reflector} from 'angular2/src/reflection/reflection';
import {ReflectionCapabilities} from 'angular2/src/reflection/reflection_capabilities';
@Component({
selector: 'todo-app',
@ -71,5 +73,6 @@ class TodoApp {
}
export function main() {
reflector.reflectionCapabilities = new ReflectionCapabilities(); // for the Dart version
bootstrap(TodoApp);
}