ViewFactory
Responsible for creating view containers from view configurations.
Constructor Summary
Public Constructor | ||
public |
constructor(_injector: *) |
Method Summary
Public Methods | ||
public |
create(args: ViewFactoryArgs): ViewContainer<T> Creates a view container from the given configuration. |
|
public |
destroy() |
|
public |
getTokenFrom(config: ViewConfig): * Gets the token from a view config. |
|
public |
resolveConfigProperty(config: ViewConfig, path: string): T | null Resolves a config property by looking at the view config then the components metadata config. |
|
public |
resolveMetaConfigProperty(token: *, path: string): T | null Resolves a config property from the tokens metadata. |
Public Constructors
public constructor(_injector: *) source
Params:
Name | Type | Attribute | Description |
_injector | * |
Public Methods
public create(args: ViewFactoryArgs): ViewContainer<T> source
Creates a view container from the given configuration.
Params:
Name | Type | Attribute | Description |
args | ViewFactoryArgs |
public destroy() source
public getTokenFrom(config: ViewConfig): * source
Gets the token from a view config. If using useClass
the class will be used as the token.
Any other type will require token to be provided.
Params:
Name | Type | Attribute | Description |
config | ViewConfig |
Return:
* |