ResolverBuilder.transient() method
@microsoft/fast-element/di.js > ResolverBuilder > transient
ResolverBuilder.transient() method
Creates a resolver that creates a new instance for every dependency request.
Signature:
transient(value: Constructable): Resolver<K>;
Parameters
Parameter | Type | Description |
---|---|---|
value | Constructable | The type to create instances of. |
Returns:
Resolver<K>
- The resolver.