Report question

Question: Showing alert in angularjs when user leaves a page