How can I bind an event listener in rendered elements in Angular 2?
I am using Dragula drag and drop library. It creates dynamic HTML but my event is not bound to dy
@HostListener('window:click', ['$event']) onClick(event){ }
check this below link to detect CapsLock on click, keyup and keydown on current window. No need to add any event in html doc
Detect and warn users about caps lock is on