1 min readMar 22, 2020
Could you please provide Github link for this. this will be class or singlton service. One more thing as above article and relative we should use
@HostListener(‘unloaded’)
pageDestroy() {
console.log(‘Component is dead!’);
}
For unregistering