-
Notifications
You must be signed in to change notification settings - Fork 518
HMR injects duplicate angular markup into the page #665
Comments
…standard Angular one. Makes issue #665 no longer apply.
Sorry about that. It was a mismatch between the logic needed for Angular 2.0.2 and 2.4.5+. To fix it, edit your
Leave the following one (that calls This will no longer be an issue, as we've removed the option to produce projects with older versions of Angular (the Angular template now only produces 2.4.5+ projects), hence closing this. |
Would you expect this to still be a problem with Microsoft.AspNetCore.SpaTemplates 0.9.3 that was using Angular 4? I'm still seeing the issue at that point (May'ish) and am wondering if the advice above is still the recommendation for that version. |
@kkalitowski Yes, nothing's changed about that yet as far as I know. |
@SteveSanderson Gotcha. And that manual fix does work. I was referring to your Feb 13 note saying there should no longer be an issue. On a positive note, TrilonIO/aspnetcore-angular-universal@a83a6a9 was merged yesterday which fixes the issue. |
Angular 4.4.5, nothing improved yet. The solution of @SteveSanderson is working. |
When modifing a file, such as a .ts or .css file, for example:
this.currentCount++;
to
this.currentCount = this.currentCount + 2 ;
Then the component gets rendered twice in the page like so:
I'm using the latest yeoman project but not the experimental angular option.
thanks
The text was updated successfully, but these errors were encountered: