Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Inputs with $ suffix prevent elements from being recognized #1574

@bstrandjev

Description

@bstrandjev

🐞 bug report

Is this a regression?

Yes and no. This still works for Angular < 12. Also it seems to be similar to issue: #1109
However, i never got a setup that worked for Angular 13.

Description

A clear and concise description of the problem...

I am using recent Visual Studio code and it works ok with Angular 12, however, for Angular 13 projects all my custom components that are under *ngIf DOM element can not be navigated to. I can not navigate to them to using CTRL + mouse click. Also right click and Go to definition tells me "No definition found".

I have read this issue thread and I tried setting "angular.experimental-ivy": false in my Visual Studio code, but to no avail.

I am using Visual Studio Code on Ubuntu with the following versions:

Version: 1.62.3
Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
Date: 2021-11-17T08:00:36.721Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.4.0-90-generic snap

The Angular I tried using is 13.0.1.

Bug Type

What does this bug affect

  • [x ] Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:

  1. Load whatever Angular 13 project in Visual Studio Code
  2. Open any HTML file with *ngIf protected DOM element
  3. Try navigating (e.g. with CTRL + mouse click) to any element listed under it: either custom component or template varible
  4. Nothing will happen.
  5. Right click -> Go to definition triggers "No definition found for"

Expected behavior

The navigation should work as for older angular versions

🌍 Your Environment

Angular Version:


13.0.1.

VSCode Version:


1.62.3

Operating System:


Linux x64 5.4.0-90-generic snap

Extension options:


"angular.experimental-ivy": false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions