provideZoneChangeDetection
함수
안정화
Provides NgZone-based change detection for the application bootstrapped using
bootstrapApplication.
API
function provideZoneChangeDetection(
options?: NgZoneOptions | undefined,
): EnvironmentProviders;@returns
EnvironmentProviders설명
Provides NgZone-based change detection for the application bootstrapped using
bootstrapApplication.
Add this provider to use NgZone/ZoneJS-based change detection and configure options like
eventCoalescing in the NgZone.
If you need this provider function in an NgModule-based application, pass it as applicationProviders to bootstrapModule().
사용 시 참고사항
bootstrapApplication(MyApp, {providers: [
provideZoneChangeDetection({eventCoalescing: true}),
]});
상세 내용으로 이동