Hostlistner
@HostListener('click', ['$event.target']) onClick(e){
window.alert('Current DOM element is');
console.log(e);
}
Nutty Nightingale
@HostListener('click', ['$event.target']) onClick(e){
window.alert('Current DOM element is');
console.log(e);
}
@HostListener('click', ['$event']) onClick(e) {...}