di library

Classes

ClassProvider<T>
Describes at compile-time configuring to return an instance of a class. [...]
Component
Declare reusable UI building blocks for an application. [...]
Directive
An annotation that marks a class as an Angular directive, allowing you to attach behavior to elements in the DOM. [...]
ExceptionHandler
Provides a hook for centralized exception handling. [...]
ExistingProvider<T>
Describes at compile-time configuring to redirect to another token. [...]
FactoryProvider<T>
Describes at compile-time configuring to invoke a factory function. [...]
GenerateInjector
Annotates a method to generate an Injector factory at compile-time. [...]
Host
Specifies that an injector should retrieve a dependency from any injector until reaching the closest host. [...]
Inject
A parameter metadata that specifies a dependency. [...]
Injectable
Compile-time metadata that marks a class Type or Function for injection. [...]
Injector
Support for imperatively loading dependency injected services at runtime. [...]
Input
Declares a data-bound input property. [...]
Module
Encapsulates a reusable set of dependency injection configurations. [...]
MultiToken<T>
A token representing multiple values of T for dependency injection. [...]
NgZone
An injectable service for executing work inside or outside of the Angular zone. [...]
NgZoneError
Stores error information; delivered via NgZone.onError stream.
OpaqueToken<T>
A token to be used instead of Type when configuring dependency injection. [...]
Optional
A parameter metadata that marks a dependency as optional. [...]
Output
Declares an event-bound output property. [...]
Pipe
Declare reusable pipe function. [...]
PipeTransform
To create a Pipe, you must implement this interface. [...]
Provider<T>
Describes at compile-time how an Injector should be configured. [...]
ReflectiveInjector
An injector that resolves Provider instances with runtime information.
Self
Specifies that an Injector should retrieve a dependency only from itself. [...]
SkipSelf
Specifies that the dependency resolution should start from the parent injector. [...]
ValueProvider<T>
Describes at compile-time using a constant value to represent a token. [...]

Constants

noValueProvided → const Object
A marker that represents a lack-of-value for the useValue parameter.
'__noValueProvided__'

Functions

longestPendingTimer(NgZone zone) → Duration
For a zone, returns the Duration of the longest pending timer. [...]
@experimental
provide<T>(Object token, { Type useClass, Object useValue: noValueProvided, Object useExisting, Function useFactory, List<Object> deps, bool multi }) Provider<T>
Short-hand for new Provider(...). [...]

Typedefs

InjectorFactory([Injector parent ]) Injector
Defines a function that creates an injector around a parent injector. [...]

Exceptions / Errors

InjectionError
A class of error that is thrown related to dependency injection. [...]
NoProviderError
Thrown when there is no dependency injection provider found for a token.