Skip to content

[Bug] Tests failing when directive does not have inputs and outputs #3

@gund

Description

@gund

In this case angular does not create property ngBaseDef on the directive class and thus consequent property accesses fail here:

export function getDirectiveIO<T>(dirType: Type<T>): DirectiveIO {
const { inputs, outputs } = (dirType as any).ngBaseDef;

This access has to be guarded.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions