Skip to content

Instantly share code, notes, and snippets.

@afirdousi
Last active June 27, 2017 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afirdousi/1b92b0337873c2624f330d35c6440659 to your computer and use it in GitHub Desktop.
Save afirdousi/1b92b0337873c2624f330d35c6440659 to your computer and use it in GitHub Desktop.
import { Directive, HostListener } from '@angular/core';
@Directive({
selector:'my-custom-input input'
})
export class InputReference {
@HostListener('focus')
onFocus(){
}
@HostListener('blur')
onBlur(){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment