I am new to angular 4 using typescript, how can we differentiate forward and backward button in the browser.
this.subscription = this.lc.subscribe((x: PopStateEvent) => { console.log("Localtion Back", x); // // Handler });
how to come out of the application stack:usecase assume user started with google.com then user type abc.com . In abc.com, user will navigate a>b>c>d>e then from e page navigate to b and if the user press browserback button first time it should navigate to a thn second time back it should come back to google.com

Sagar Pandurang KapRank #606 · 4K reputationPosted Mar 13, 2018, 7:59 PM EDT
Kaushik DhameliyaRank #1,518 · 1K reputationPosted Mar 14, 2018, 9:25 PM EDT