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

Signal inputs inside an extended directive are not recognized in the HTML #2070

Open
1 of 2 tasks
GLugano opened this issue Jul 18, 2024 · 1 comment
Open
1 of 2 tasks
Labels

Comments

@GLugano
Copy link

GLugano commented Jul 18, 2024

🐞 bug report

Is this a regression?

I'm doing a new project (Angular 18) based on an old project (Angular 14), then i have no idea if it worked in any versions after the creation of Signals.

Description

When creating a class with the directive decorator and adding inputs that are signals, extending it in another component and then trying to use that component in the HTML, the inputs from the base class are not visible.

Bug Type

This bug prevents the VSCode autocomplete/sugestion to show the inputs from the extendend directive and the possible values in it.

  • Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

https://stackblitz.com/edit/stackblitz-starters-bdy9gh?file=src%2Fapp%2Fbutton%2Fbutton.component.ts

This code was tested in Webstorm too and the autocomplete/sugestion worked fine (not by be, but a moderator from Angular discord, i dont use Webstorm).

Expected behavior

All signal inputs from extended directives should be recognized when using autocomplete/sugestion.

🌍 Your Environment

Angular Version:


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 18.0.5
Node: 20.15.0
Package Manager: npm 9.9.3
OS: linux x64

Angular: 18.0.4
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, material-luxon-adapter, platform-browser
... platform-browser-dynamic, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1800.5
@angular-devkit/build-angular   18.0.5
@angular-devkit/core            18.0.5
@angular-devkit/schematics      18.0.5
@angular/cli                    18.0.5
@schematics/angular             18.0.5
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.4

Extension Version:

18.1.2

VSCode Version:

1.91.1

Operating System:

WSL with Ubuntu 20.04 LTS in a Windows 11 PRO 22H2

Extension options:

Only default configs.
@GLugano GLugano added the bug label Jul 18, 2024
@GLugano GLugano changed the title Signal inputs inside a extended directive are not recognized in the HTML Signal inputs inside an extended directive are not recognized in the HTML Aug 13, 2024
@GLugano
Copy link
Author

GLugano commented Aug 21, 2024

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant