@ -3,11 +3,11 @@ library examples.src.web_workers.todo.background_index;
|
||||
import "index_common.dart" show TodoApp;
|
||||
import "dart:isolate";
|
||||
import "package:angular2/src/web-workers/worker/application.dart"
|
||||
show bootstrapWebworker;
|
||||
show bootstrapWebWorker;
|
||||
import "package:angular2/src/reflection/reflection_capabilities.dart";
|
||||
import "package:angular2/src/reflection/reflection.dart";
|
||||
|
||||
main(List<String> args, SendPort replyTo) {
|
||||
reflector.reflectionCapabilities = new ReflectionCapabilities();
|
||||
bootstrapWebworker(replyTo, TodoApp).catchError((error) => throw error);
|
||||
bootstrapWebWorker(replyTo, TodoApp).catchError((error) => throw error);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {bootstrapWebworker} from "angular2/src/web-workers/worker/application";
|
||||
import {bootstrapWebWorker} from "angular2/src/web-workers/worker/application";
|
||||
import {TodoApp} from "./index_common";
|
||||
|
||||
export function main() {
|
||||
bootstrapWebworker(TodoApp);
|
||||
bootstrapWebWorker(TodoApp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user