I need to intercept the page reload when the user clicks the reload button in the browser. I tried the following code but my break point never pops up.
ngOnInit() {
this.router
.events
.subscribe((e: RouterEvent) => {
debugger;
});
}
Can anyone help please?