Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Random reloads Angular 4 (live-reload)

Tags:

I am currently working on a project in Angular 4 and for some reason I keep experiencing random reloads when I am previewing the app on a browser. (I am running in prod mode). Anyone experiencing the same issue? Any solution found? Thanks.

like image 560
Alex Avatar asked May 15 '17 13:05

Alex


1 Answers

As already explained its a feature provided by your code editor, currently I am using visual studio code and if you read the documentation, it clearly mentions this feature as a live update. Whenever you save your changes, Visual studio triggers an event which compiles your code via the instance of cmd you are sharing data to the port.

Just take some time out reading the documentation for VS code, it has added a bulk of feature especially to support Angular development.

https://code.visualstudio.com/docs/nodejs/angular-tutorial

like image 172
Ronit Oommen Avatar answered Sep 28 '22 09:09

Ronit Oommen