1

I am developing an AngularJs app, which will run on localhost.

It will make regular checks to a central server, to check if the app itself needs to be updated.

This might be changed data, which is easy enough to handle, but could also be a changed view or controller.

Can I update a controller from within that controller itself, or will the file be locked?

How would I reload the app?

Perhaps I ought not to update the app from within itself, but have a "watchdog" app to update it? Even so, might I have locked file problems? And how would I "reload" the app?

1
  • 2
    In my opinion browserSync is your best partner browsersync.io/docs/gulp Commented Jul 14, 2017 at 8:34

1 Answer 1

1

This is the work of your task runners like gulp or grunt to watch the changes over specified files and perform the action. None of this is related to angular.js.

Follow these link:

https://www.npmjs.com/package/gulp-auto-reload

https://github.com/gruntjs/grunt-contrib-watch

This will help you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.