вы можете попробовать с помощью HostListener
HostListener
@HostListener('window:popstate', ['$event']) onPopState(event) { console.log('Back button clicked'); }