Skip to content

Commit

Permalink
demo: enable zoneless CD on the demo site (#4728)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxokorokov authored Jun 18, 2024
1 parent 256f3a9 commit 89efb02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"outputPath": "demo/dist",
"index": "demo/src/index.html",
"browser": "demo/src/main.ts",
"polyfills": ["zone.js"],
"polyfills": ["@angular/localize/init"],
"tsConfig": "demo/tsconfig.json",
"assets": [
{
Expand Down
3 changes: 2 additions & 1 deletion demo/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '@angular/router';
import { ROUTES } from './app/routes';
import { provideHttpClient, withNoXsrfProtection } from '@angular/common/http';
import { APP_INITIALIZER, inject } from '@angular/core';
import { APP_INITIALIZER, inject, provideExperimentalZonelessChangeDetection } from '@angular/core';
import { AnalyticsService } from './app/services/analytics.service';

bootstrapApplication(AppComponent, {
Expand All @@ -28,6 +28,7 @@ bootstrapApplication(AppComponent, {
}),
),
provideHttpClient(withNoXsrfProtection()),
provideExperimentalZonelessChangeDetection(),
{
provide: APP_INITIALIZER,
useFactory: () => {
Expand Down

0 comments on commit 89efb02

Please sign in to comment.