export class HostListenerMetadata
export class HostListenerMetadata
exported from angular2/core defined in angular2/src/core/metadata/directives.ts (line 1093)
Declares a host listener.
Angular will invoke the decorated method when the host element emits the specified event.
If the decorated method returns false
, then preventDefault
is applied on the DOM
event.
Example
The following example declares a directive that attaches a click listener to the button and counts clicks.
Constructor
constructor(eventName: string, args?: string[])
constructor(eventName: string, args?: string[])
Not Yet Documented
Members
eventName : string
eventName : string
Not Yet Documented
args : string[]
args : string[]
Not Yet Documented