Skip to content

Commit 02fcd81

Browse files
committed
Add explicit provideZoneChangeDetection to providers
1 parent 9462fca commit 02fcd81

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

web/page0/src/app/app.module.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {NgModule} from '@angular/core';
1+
import {NgModule, provideZoneChangeDetection} from '@angular/core';
22
import {BrowserModule} from '@angular/platform-browser';
33
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
44

@@ -40,6 +40,10 @@ import {DeviceFormComponent} from './device-form/device-form.component';
4040
import {SafeUrlPipe} from './safe-url.pipe';
4141
import {HTTP_INTERCEPTOR_PROVIDERS} from '../http_interceptors';
4242

43+
@NgModule({providers: [provideZoneChangeDetection()]})
44+
export class ZoneChangeDetectionModule {
45+
}
46+
4347
@NgModule({
4448
declarations: [
4549
AppComponent,
@@ -84,6 +88,7 @@ import {HTTP_INTERCEPTOR_PROVIDERS} from '../http_interceptors';
8488
{path: 'create-host', component: CreateHostViewComponent},
8589
{path: 'register-runtime', component: RegisterRuntimeViewComponent},
8690
]),
91+
ZoneChangeDetectionModule,
8792
],
8893
providers: [
8994
HTTP_INTERCEPTOR_PROVIDERS,

0 commit comments

Comments
 (0)