AngularJS: autoload

What is the most common way to make an AngularJS single page application automatically reload in the browser every time I change its code?

In other words, if I have a code editor that opens HTML editing for a single-page AnguarJS application and a browser in that application, side by side on the same screen, clicking the "Save" button in my editor should immediately launch the browser for updating.

Alternatively, the same scenario as above, instead of hitting Save in my editor, I made Commit in my VCS.

+4
source share
2 answers

Use the grunjs scan task to do this.

+1
source

This is the job of your task runner, such as gulp, or grunts to keep track of changes to specified files and perform actions. None of this is related to angular

0
source

Source: https://habr.com/ru/post/1484921/


All Articles