• Overview
@angular/core

DestroyableInjector

interface

An Injector that the owner can destroy and trigger the DestroyRef.destroy hooks.

API

  
    interface DestroyableInjector extends Injector {
}

destroy

void
@returnsvoid

get

4 overloads

Retrieves an instance from the injector based on the provided token.

@paramtokenProviderToken<T>
@paramnotFoundValueundefined
@paramoptionsInjectOptions & { optional?: false | undefined; }
@returnsT

Retrieves an instance from the injector based on the provided token.

@paramtokenProviderToken<T>
@paramnotFoundValuenull | undefined
@paramoptionsInjectOptions
@returnsT | null

Retrieves an instance from the injector based on the provided token.

@paramtokenProviderToken<T>
@paramnotFoundValueT | undefined
@paramoptionsInjectOptions | undefined
@returnsT
@deprecated

from v4.0.0 use ProviderToken

@paramtokenstring | ProviderToken<T>
@paramnotFoundValueany
@returnsany
Jump to details