How To Detect Page Refresh In Angularjs