File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
apps/nativescript-demo-ng/src Expand file tree Collapse file tree 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';
1212import { setWindowBackgroundColor } from '@nativescript/core/utils/ios' ;
1313import { AppComponent } from './app/app.component' ;
1414import { routes } from './app/app.routes' ;
15+ import { provideExperimentalZonelessChangeDetection } from '@angular/core' ;
16+
17+ const EXPERIMENTAL_ZONELESS = true ;
1518
1619Trace . enable ( ) ;
1720Trace . setCategories ( 'ns-route-reuse-strategy,ns-router' ) ;
@@ -25,7 +28,7 @@ runNativeScriptAngularApp({
2528 providers : [
2629 provideNativeScriptHttpClient ( withInterceptorsFromDi ( ) ) ,
2730 provideNativeScriptRouter ( routes ) ,
28- provideNativeScriptNgZone ( ) ,
31+ EXPERIMENTAL_ZONELESS ? provideExperimentalZonelessChangeDetection ( ) : provideNativeScriptNgZone ( ) ,
2932 ] ,
3033 } ) ;
3134 } ,
You can’t perform that action at this time.
0 commit comments