You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I updated the project to the latest Angular 15. Current version of the extension is v17.0.2
routerLink with object.key parameter breaks the HTML file highlighting
Here is a screenshot:
The code after [routerLink]="['report', report.id]" is not highlighted properly
Interesting point that the same code looks ok on the previous version of the product (Angular 13.3.11). The version of the extension if the same. Here is a screenshot:
Bug Type
What does this bug affect
Angular Language Service VSCode extension
Angular Language Service server
Reproduction
Steps to reproduce the behavior:
Create a new project based on Angular 15
Create an parameter in app.component.ts link = { id: 1}
Create a tag in the template: <a [routerLink]="[link.id]">link</a>
The code after routerLink will not be highlighted
Expected behavior
The HTML template highlighting should not break on routerLink directive.
🐞 bug report
Is this a regression?
May be
Description
Recently I updated the project to the latest Angular 15. Current version of the extension is v17.0.2
routerLink with object.key parameter breaks the HTML file highlighting
![image](https://private-user-images.githubusercontent.com/5379101/288398927-3b39b631-beef-416f-bdc5-4883911ca75a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MjI5NDQsIm5iZiI6MTcyMTQyMjY0NCwicGF0aCI6Ii81Mzc5MTAxLzI4ODM5ODkyNy0zYjM5YjYzMS1iZWVmLTQxNmYtYmRjNS00ODgzOTExY2E3NWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTlUMjA1NzI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDgzN2Y4MTAyOTkxZmQxNmQ4MzY3ZjU3MDI2MjZmNDcyZjg0NmI1MTBjZjgxMGI2ZTA0ZmIzZTc1Zjc4OWM1NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MNU4mx8z0NlQvmyIGIodGpwFZ3sO9Qra2ZFScM_qErk)
Here is a screenshot:
The code after
[routerLink]="['report', report.id]"
is not highlighted properlyInteresting point that the same code looks ok on the previous version of the product (Angular 13.3.11). The version of the extension if the same. Here is a screenshot:
![image](https://private-user-images.githubusercontent.com/5379101/288400222-29ac72d4-b2aa-4eab-ad15-9fd59e3cf523.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MjI5NDQsIm5iZiI6MTcyMTQyMjY0NCwicGF0aCI6Ii81Mzc5MTAxLzI4ODQwMDIyMi0yOWFjNzJkNC1iMmFhLTRlYWItYWQxNS05ZmQ1OWUzY2Y1MjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTlUMjA1NzI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2NlYTEzZjBlN2EwNDczOGNiMWVlZDg3ZDE3MjljODIwMzBmZDBhOTcyZTVjNDdjNDIyMWRlMzk1ZjRiM2RjOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.5aU1V0MelGLJ6eiZji_lejt_5IKynqgRLh8MK_MyW1E)
Bug Type
What does this bug affect
Reproduction
Steps to reproduce the behavior:
link = { id: 1}
a
tag in the template:<a [routerLink]="[link.id]">link</a>
routerLink
will not be highlightedExpected behavior
The HTML template highlighting should not break on routerLink directive.
Screenshots
🌍 Your Environment
Angular Version:
Extension Version:
VSCode Version:
Operating System:
The text was updated successfully, but these errors were encountered: