In Angular2, how can I target an element within the HostListener decorator?
@HostListener(\'dragstart\', [\'$event\']) onDragStart(ev:Event) { co
I think better way for global listener is @hostliterner but if you want to target some element you can do like this
in your angular component
onEvent($e) { //do something ... }