Skip to main content
Version: 2.x

Factory.construct() method

@microsoft/fast-element/di.js > Factory > construct

Factory.construct() method

Constructs an instance of the factory's object.

Signature:

construct(container: Container, dynamicDependencies?: Key[]): Resolved<T>;

Parameters

Parameter

Type

Description

container

Container

The container the object is being constructor for.

dynamicDependencies

Key[]

(Optional) Dynamic dependencies supplied to the constructor.

Returns:

Resolved<T>