Used to periodically verify no expressions have changed after they were checked.
API
function provideExperimentalCheckNoChangesForDebug( options: { interval?: number | undefined; useNgZoneOnStable?: boolean | undefined; exhaustive?: boolean | undefined; }): EnvironmentProviders;
provideExperimentalCheckNoChangesForDebug
Used to periodically verify no expressions have changed after they were checked.
@paramoptions
{ interval?: number | undefined; useNgZoneOnStable?: boolean | undefined; exhaustive?: boolean | undefined; }Used to configure when the check will execute.
intervalwill periodically run exhaustivecheckNoChangeson application viewsuseNgZoneOnStablewill use ZoneJS to determine when change detection might have run in an application using ZoneJS to drive change detection. When theNgZone.onStablewould have emitted, all views attached to theApplicationRefare checked for changes.- 'exhaustive' means that all views attached to
ApplicationRefand all the descendants of those views will be checked for changes (excluding those subtrees which are detached viaChangeDetectorRef.detach()). This is useful because the check that runs after regular change detection does not work for components usingChangeDetectionStrategy.OnPush. This check is will surface any existing errors hidden byOnPushcomponents. By default, this check is exhaustive and will always check all views, regardless of their "dirty" state andChangeDetectionStrategy.
When the useNgZoneOnStable option is true, this function will provide its own NgZone implementation and needs
to come after any other NgZone provider, including provideZoneChangeDetection() and provideExperimentalZonelessChangeDetection().
@returns
EnvironmentProvidersJump to details