Skip to content

Commit 3289cd8

Browse files
committed
feat: add experimental zoneless
1 parent 72e7aae commit 3289cd8

File tree

1 file changed

+4
-1
lines changed
  • apps/nativescript-demo-ng/src

1 file changed

+4
-1
lines changed

apps/nativescript-demo-ng/src/main.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import { withInterceptorsFromDi } from '@angular/common/http';
1212
import { setWindowBackgroundColor } from '@nativescript/core/utils/ios';
1313
import { AppComponent } from './app/app.component';
1414
import { routes } from './app/app.routes';
15+
import { provideExperimentalZonelessChangeDetection } from '@angular/core';
16+
17+
const EXPERIMENTAL_ZONELESS = true;
1518

1619
Trace.enable();
1720
Trace.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
},

0 commit comments

Comments
 (0)