How To Detect Page Refresh In Angular 4