Skip to content

Commit 8456625

Browse files
feat: switch to Zoneless change detection
1 parent 29c0c23 commit 8456625

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/app/app.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { provideHttpClient } from '@angular/common/http';
2-
import { ApplicationConfig } from '@angular/core';
2+
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
33
import { provideClientHydration, withIncrementalHydration } from '@angular/platform-browser';
44
import { provideFileRouter } from '@analogjs/router';
55
import { provideContent, withMarkdownRenderer } from '@analogjs/content';
66
import { withPrismHighlighter } from "@analogjs/content/prism-highlighter";
77

88
export const appConfig: ApplicationConfig = {
99
providers: [
10+
provideZonelessChangeDetection(),
1011
provideFileRouter(),
1112
provideHttpClient(),
1213
provideClientHydration(withIncrementalHydration()),

src/main.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'zone.js/node';
21
import { render } from '@analogjs/router/server';
32

43
import { AppComponent } from './app/app.component';

src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'zone.js';
21
import { bootstrapApplication } from '@angular/platform-browser';
32

43
import { AppComponent } from './app/app.component';

0 commit comments

Comments
 (0)