when I am running my Angular app in the CLI with "ng serve", on every tiny change in the code, my app gets reloaded / refreshed. How can I stop that behaviour?
I know I have seen the command ng serve --live-reload false
, but apparently, I have to reload everything then in browser by hand.
Weirdly, on my other desktop PC, not my laptop, I can just reload everything by default in VSCode by pressing CTRL+S
, otherwise, no changes or reloads are done during changing the code otherwise. I would like to have this behaviour by default on my laptop also... How can I do that?
with the command line, you can use --live-reload=false .
ng-hot-reload is a tool focused on making UI development more pleasant with AngularJS.
Turn of the autoSave
feature. This feature automatically saves your files on any change which cause ng serve
to reload the files.
File > Preferences > Settings > Search autoSave
> select off
"files.autoSave": "off",
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With