New technologies bring new solutions to problems. Sometimes, however, they also bring old problems back. One of these old problems for AngularJS is interrupting navigation in a web application.
It used to be that you could hook into the approriate window event (onbeforeonload) and be done with it. Unfortunately, AngularJS introduces the idea of a single-page app in which you never donavigate away from that page (and thus the window.onbeforeonload event will never fire). Complicating the matter is the fact that when you’re developing within an angular application that you’re relying on the angular framework to provide you with a solution.
What’s a poor developer to do?
Your new post is loading...