When i changed the code in Angular4 then page is not refreshing. i have to again start the server using
ng serve --open
Every time i change I have to restart the server.
Please guide me!
Is there any other option to avoid this?
When i changed the code in Angular4 then page is not refreshing. i have to again start the server using
ng serve --open
Every time i change I have to restart the server.
Please guide me!
Is there any other option to avoid this?
try
ng serve --open --watch
if this does not work try cache clean
and npm install
If you are using Ubuntu Try reseting the number of watches this might solve the problem
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
As mentioned in a similar answer here, try deleting your node_modules folder and running npm install again. This should upgrade a bad npm dependency.
I would recommend deleting cache as well, follow below steps:
npm cache clean
.npm install
.Since you are using a relatively older version of CLI, it would be better to update that as well!
In Ubuntu run this command when your Angular page does not detect changes.
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches