Skip to content

Export DirectiveWithBindings from @angular/core #66851

@davidbusuttil

Description

@davidbusuttil

Which @angular/* package(s) are relevant/related to the feature request?

@angular/core

Description

Currently, I have to infer the type by using NonNullable<Parameters<ViewContainerRef["createComponent"]>[5]>.

It would be much cleaner if DirectiveWithBindings is exported so that it can be used when building an array for directives with bindings with viewContainerRef.createComponent.

Proposed solution

Export DirectiveWithBindings from @angular/core.

Alternatives considered

I am currently using the type NonNullable<Parameters<ViewContainerRef["createComponent"]>[5]>.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions