File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { NgModule } from "@angular/core" ;
1+ import { NgModule , provideZoneChangeDetection } from "@angular/core" ;
22import { BrowserModule } from "@angular/platform-browser" ;
33
44import { AppComponent } from "./app.component" ;
@@ -10,7 +10,7 @@ defineCustomElements();
1010@NgModule ( {
1111 declarations : [ AppComponent ] ,
1212 imports : [ BrowserModule , NgxRAWebComponentModule ] ,
13- providers : [ ] ,
13+ providers : [ provideZoneChangeDetection ( ) ] ,
1414 bootstrap : [ AppComponent ] ,
1515} )
1616export class AppModule { }
Original file line number Diff line number Diff line change 1- import { provideZoneChangeDetection } from "@angular/core" ;
21import { platformBrowser } from "@angular/platform-browser" ;
32
43import { AppModule } from "./app/app.module" ;
54
65platformBrowser ( )
7- . bootstrapModule ( AppModule , {
8- applicationProviders : [ provideZoneChangeDetection ( ) ] ,
9- } )
6+ . bootstrapModule ( AppModule )
107 . catch ( ( err ) => console . error ( err ) ) ;
Original file line number Diff line number Diff line change 11import { ToastrModule } from "ngx-toastr" ;
22
33import { provideHttpClient } from "@angular/common/http" ;
4- import { CUSTOM_ELEMENTS_SCHEMA , NgModule } from "@angular/core" ;
4+ import {
5+ CUSTOM_ELEMENTS_SCHEMA ,
6+ NgModule ,
7+ provideZoneChangeDetection ,
8+ } from "@angular/core" ;
59import { FormsModule , ReactiveFormsModule } from "@angular/forms" ;
610import { BrowserModule } from "@angular/platform-browser" ;
711import { BrowserAnimationsModule } from "@angular/platform-browser/animations" ;
@@ -53,7 +57,7 @@ defineCustomElements();
5357 NgxRAWebComponentModule ,
5458 SharedModule ,
5559 ] ,
56- providers : [ provideHttpClient ( ) ] ,
60+ providers : [ provideHttpClient ( ) , provideZoneChangeDetection ( ) ] ,
5761 bootstrap : [ AppComponent ] ,
5862 schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
5963} )
Original file line number Diff line number Diff line change 1- import { enableProdMode , provideZoneChangeDetection } from "@angular/core" ;
21import { platformBrowser } from "@angular/platform-browser" ;
2+ import { enableProdMode } from "@angular/core" ;
33
44import { AppModule } from "./app/app.module" ;
55import { environment } from "./environments/environment" ;
@@ -9,7 +9,5 @@ if (environment.production) {
99}
1010
1111platformBrowser ( )
12- . bootstrapModule ( AppModule , {
13- applicationProviders : [ provideZoneChangeDetection ( ) ] ,
14- } )
12+ . bootstrapModule ( AppModule )
1513 . catch ( ( err : any ) => console . error ( err ) ) ;
You can’t perform that action at this time.
0 commit comments