I am trying to call some function every time, when url changes.
@HostListener('window:hashchanged', ['$event'])
someFunction(event) {
console.log('test')
}
How i can do this?
The event is hashchange
withaout the d
at the end:
@HostListener('window:hashchange', ['$event'])