Skip to content

Conversation

@Hristo313
Copy link
Contributor

Closes #1487

Additional information related to this pull request: Add provideZoneChangeDetection in the app.config files for angular standalone applications. This is the recommended way to setup the zone change detection now in Angular.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Angular’s recommended provideZoneChangeDetection setup to standalone app template app.config.ts files to enable zone change detection with event coalescing.

Changes:

  • Imports provideZoneChangeDetection from @angular/core in multiple templates
  • Registers provideZoneChangeDetection({ eventCoalescing: true }) in each template’s provider list

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/igx-templates/igx-ts/projects/side-nav/files/src/app/app.config.ts Adds provideZoneChangeDetection and registers it in providers
packages/igx-templates/igx-ts/projects/side-nav-auth/files/src/app/app.config.ts Adds provideZoneChangeDetection and registers it in providers
packages/igx-templates/igx-ts/projects/empty/files/src/app/app.config.ts Adds provideZoneChangeDetection and registers it in providers
packages/igx-templates/igx-ts/projects/_base_with_home/files/src/app/app.config.ts Adds provideZoneChangeDetection and registers it in providers
packages/igx-templates/igx-ts/projects/_base/files/src/app/app.config.ts Adds provideZoneChangeDetection and registers it in providers
Comments suppressed due to low confidence (1)

packages/igx-templates/igx-ts/projects/_base_with_home/files/src/app/app.config.ts:1

  • provideZoneChangeDetection(...) returns EnvironmentProviders (not a Provider). With const providers: Provider = [...], this is likely to cause a TypeScript type error. Prefer typing this as ApplicationConfig['providers'] (or Array<Provider | EnvironmentProviders>) or dropping the explicit Provider type so the array can include environment providers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link

coveralls commented Feb 10, 2026

Coverage Status

coverage: 70.369%. remained the same
when pulling 60a97cf on hhristov/add-zone-change-detection
into 7d0f2db on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add provideZoneChangeDetection in application config for Angular standalone applications

2 participants