Skip to content

[BUG] Input Signals implementation is excluding valid cases #1474

@mridderikhoff

Description

@mridderikhoff
Overview of the issue

Recently added support for Signal inputs exclude valid cases. model is also a valid Signal input.

The following cases fail the Regex test /input(?:\.(required))?(?:<([\w-]+)>)?\(([\w-]+)?\)/.

inputName = input('');
readonly = input(false, { transform: booleanAttribute });
labelPosition = input<SwitchLabelPosition>(SwitchLabelPositions.after);
checked = model(false); 
Operating System, Node.js, npm, compodoc version(s)

"@compodoc/compodoc": "1.1.24"

Motivation for or Use Case

Same motiviation as the original issue. Signals are a powerful pattern and the new norm for Angular developers.

Suggest a Fix

Update the checks in src/app/compiler/angular/deps/helpers/component-helper.ts to account for:

  • input with '' default value
  • input with transformers
  • input with complex type parameters
  • model inputs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions