Spec-Zone.ru › Angular

provideIdleServiceWith

Configures Angular to use the given DI token as its IdleService.

Customizing idle behavior

API

function provideIdleServiceWith(
  useExisting: AbstractType<IdleService> | InjectionToken<IdleService>,
): EnvironmentProviders;
@paramuseExistingAbstractType<IdleService> | InjectionToken<IdleService>
@returnsEnvironmentProviders

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API