Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an angular app that is live on the server now I want to deploy this app with some design changes but Brower impact came after Control F5. how can I do this without a manual refresh?

What I have tried:

I have an angular app that is live on the server now I want to deploy this app with some design changes but Brower impact came after Control F5. how can I do this without a manual refresh?
Posted

1 solution

Quote:
I want to deploy this app with some design changes but Brower impact came after Control F5
Which is the correct behavior, as your browser is not linked with the server to check for any updates.
Quote:
how can I do this without a manual refresh?
You can setup a push notification listener from the server in your app that listens to any deployment (successful/rollback) updates. This notification can then update the parts of Angular app or trigger a page reload (kind of what the F5 does on the browser).

But this requires that you enable the push notification receiver and a server-side channel that is active throughout (this would be expensive in long term). If you do not wish for a push model, then a pull model would help. In this approach, you just reverse the approach and write middleware in the Angular app that keeps polling for a fresh version of the app.

So, not sure if this will work in your current situation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900