title: Save value before redirecting to other page in Angular 4
body: <p>I have a scenario, User is editing details on a page but accidentally other page link has been clicked from header menu. Now what I want to do is to save the current page value before redirecting. I am using Angular 4. Any smart way to do it?</p>