Interface FactoryProvider<T>

Type Parameters

  • T

Hierarchy

Properties

provide: Token<T>

An injection token.

transient?: true

Per default all instances are singleton (scoped to its scope). Enabling transient makes the Injector create always a new instance for every consumer.

useFactory: ((...args: any[]) => T)

Type declaration

    • (...args: any[]): T
    • A function to invoke to create a value for this token.

      Parameters

      • Rest ...args: any[]

      Returns T

Generated using TypeDoc