Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit d7eaee0

Browse files
committed
feat(bootstrap): use JitChangeDetection
1 parent 418210f commit d7eaee0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/bootstrap.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
// Angular 2
55
import {bootstrap} from 'angular2/angular2';
6+
import {bind} from 'angular2/di';
7+
import {ChangeDetection, JitChangeDetection} from 'angular2/change_detection'
68

79
// include any injectables
810
import {routerInjectables} from 'angular2/router';
@@ -24,5 +26,6 @@ bootstrap(App, [
2426
// our servies
2527
// appServicesInjectables,
2628
modelInjectables,
27-
rxPipeRegistry
29+
rxPipeRegistry,
30+
bind(ChangeDetection).toClass(JitChangeDetection)
2831
]);

0 commit comments

Comments
 (0)