Repository navigation
Closed
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilerfreq1: lowregressionIndicates than the issue relates to something that worked in a previous versionIndicates than the issue relates to something that worked in a previous versionstate: has PRtype: bug/fix
Milestone
Description
🐞 bug report
<a routerLink="hiya">link</a>The routerLink breaks when application recompiles. On browser, this is shown as an anchor tag that is not clickable.
This works correctly when Ivy is turned off.
Affected Package
I hope the issue may be related to @angular/router or may be Ivy
Description
I put the <a routerLink=".." .. in a component inside a lazyloaded module. When we stop the server and npm start again, this works correctly. But again fails on the next compile-on-save.
I turned off the Ivy flag and everything works fine. So this may be related to Ivy.
🔬 Minimal Reproduction
I was following the lazy-loading-ngmodules guide.
A very minimal zip is attached here (without node_modules).
broken-routerLink.zip
🔥 Exception or Error
No errors are shown.
🌍 Your Environment
Angular Version:
Angular CLI: 8.3.1
Node: 10.16.2
OS: linux x64
Angular: 8.2.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.803.1
@angular-devkit/build-angular 0.803.1
@angular-devkit/build-optimizer 0.803.1
@angular-devkit/build-webpack 0.803.1
@angular-devkit/core 8.3.1
@angular-devkit/schematics 8.3.1
@angular/cli 8.3.1
@ngtools/webpack 8.3.1
@schematics/angular 8.3.1
@schematics/update 0.803.1
rxjs 6.4.0
typescript 3.5.3
webpack 4.39.2
Reacted by yura999999999, Carlo Straccialini and Björn Hjorth
Metadata
Metadata
Assignees
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilerfreq1: lowregressionIndicates than the issue relates to something that worked in a previous versionIndicates than the issue relates to something that worked in a previous versionstate: has PRtype: bug/fix
Activity
browsermage commentedon Nov 2, 2019
Not sure if it matters but I am having the same issue.
it happens if I modify and re-save the template file.
If i use
[routerLink]it will not recognise the attrand if i type it like
routerLinkit will just ignore itng-reflect-router-linkis not applied.5 remaining items
angular-automatic-lock-bot commentedon Dec 21, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.