
This changes Angular so that it can be used without reflection (assuming a codegen for injectors). BREAKIKNG CHANGE: - Drops `APP_COMPONENT` provider. Instead, inject `ApplicationRef` and read its `componentTypes` property. - long form bootstrap has changed into the following: ``` var platform = createPlatform(ReflectiveInjector.resolveAndCreate(BROWSER_PROVIDERS)); var appInjector = ReflectiveInjector.resolveAndCreate([BROWSER_APP_PROVIDERS, appProviders], platform.injector); coreLoadAndBootstrap(appInjector, MyApp); ```
10 lines
220 B
Dart
10 lines
220 B
Dart
library angular2.examples.web_workers.todo.index;
|
|
|
|
import "package:angular2/platform/worker_render.dart";
|
|
import "package:angular2/core.dart";
|
|
|
|
@AngularEntrypoint()
|
|
main() {
|
|
bootstrapRender("background_index.dart");
|
|
}
|