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?