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:
parent
f7f06c5ad4
commit
fa1ec48549
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue