File tree 1 file changed +4
-1
lines changed
apps/nativescript-demo-ng/src
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ import { withInterceptorsFromDi } from '@angular/common/http';
12
12
import { setWindowBackgroundColor } from '@nativescript/core/utils/ios' ;
13
13
import { AppComponent } from './app/app.component' ;
14
14
import { routes } from './app/app.routes' ;
15
+ import { provideExperimentalZonelessChangeDetection } from '@angular/core' ;
16
+
17
+ const EXPERIMENTAL_ZONELESS = true ;
15
18
16
19
Trace . enable ( ) ;
17
20
Trace . setCategories ( 'ns-route-reuse-strategy,ns-router' ) ;
@@ -25,7 +28,7 @@ runNativeScriptAngularApp({
25
28
providers : [
26
29
provideNativeScriptHttpClient ( withInterceptorsFromDi ( ) ) ,
27
30
provideNativeScriptRouter ( routes ) ,
28
- provideNativeScriptNgZone ( ) ,
31
+ EXPERIMENTAL_ZONELESS ? provideExperimentalZonelessChangeDetection ( ) : provideNativeScriptNgZone ( ) ,
29
32
] ,
30
33
} ) ;
31
34
} ,
You can’t perform that action at this time.
0 commit comments