import { Directive , HostBinding , HostListener , Input , Output } from '@angular/core' ; import { DoNothingDirectiveSchema } from './do-nothing-directive.metadata' ; example @ Directive ( DoNothingDirectiveSchema ) export class DoNothingDirective { protected popover : string ; example emptyProperty = '' ; example @ Input ( ) public emptyInput : string ; example get emptyAccessor ( ) { return this . _emptyAccessor ; } set emptyAccessor ( val ) { this . _emptyAccessor = val ; } private _emptyAccessor = '' ; example @ Output ( ) public emptyOutput : string ; constructor ( ) { console . log ( 'Do nothing directive' ) ; } ngOnDestroy ( ) { } param emptyParam returns emptyMethod ( emptyParam ) { return emptyParam ; } public submitTriggered ( ) { } example @ HostBinding ( 'style.color' ) color : string ; example @ HostListener ( 'mouseup' , [ '$event.clientX' , '$event.clientY' ] ) onMouseup ( mouseX , mouseY ) { } /**
     * HostListener description 2
     */ @ HostListener ( 'mousedown' , [ '$event.clientX' , '$event.clientY' ] ) onMousedown ( mouseX , mouseY ) { } /**
     * HostListener description 3
     */ @ HostListener ( 'focus' , [ '$event' ] ) @ HostListener ( 'click' , [ '$event' ] ) onClick ( e ) { } private _fullName : string ; return { string } get fullName ( ) : string { return this . _fullName ; } param { string } newName set fullName ( newName ) { this . _fullName = newName ; } }