Reputation: 1100
I know we can disable the live reload when starting angular cli (see Angular cli - how to disable auto reload when ng serve)
I would like to be able to disable it (and re-enable it later on) from the browser's console by setting a global variable or calling a global command. Is it possible ?
Upvotes: 7
Views: 5213
Reputation: 709
I know this is old but I came across it while trying to do the same thing.
While I couldn't find a global object to modify I did find a couple of other methods.
You can you use the "Request blocking" feature of your browsers dev tools.
If you don't want to reload you can edit the value of the webpack client property 'hotReload' in memory.
I did all this in Chrome but it may work the same in your browser of choice.
Upvotes: 5