provideIdleServiceWith
Configures Angular to use the given DI token as its IdleService.
API
function provideIdleServiceWith( useExisting: AbstractType<IdleService> | InjectionToken<IdleService>, ): EnvironmentProviders;
@returns
EnvironmentProviders
Description
Configures Angular to use the given DI token as its IdleService.
The given token must be available for injection from the root injector, and the injected value must implement the IdleService interface.
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/provideIdleServiceWith