Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Inputs with Getter/Setter do not generate 'type' #274

Closed
pfoedermayr opened this issue Aug 9, 2017 · 1 comment
Closed

[BUG] Inputs with Getter/Setter do not generate 'type' #274

pfoedermayr opened this issue Aug 9, 2017 · 1 comment

Comments

@pfoedermayr
Copy link

Overview of the issue

Inputs which are used to decorate setters do no generate the type in the component view.

An Input with a setter will generate an entry in the Input-section, but w/o a type.

An Input with a getter and setter will also generate an entry in the Input-section (w/o a type),
and additionally generates an entry in the Properties-section with the correct type.

@Input()
set inputGetSet(value: number) { /* */ }
get inputGetSet(): number { return 1; }

@Input()
set inputSet(value: number) { /* */ }

@Input()
inputVariable: number;

inputgetset

Operating System, Node.js, npm, compodoc version(s)

OS: Win7 64bit
Node: 6.11.0
npm: 3.10.10
compodoc: 1.0.0-beta.13

Angular configuration, a package.json file in the root folder

Angular: 4.3.3
TypeScript: 2.3.4

Compodoc installed globally or locally ?

locally

Motivation for or Use Case

The type of an input, which uses a setter (and possibly a getter), should be shown.

Reproduce the error

Add the code provided above to a component.
Let me know if you need any additional information.

Related issues
Suggest a Fix
@lock
Copy link

lock bot commented Oct 1, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants