pau-riquelme

Untitled

Nov 23rd, 2017
4,638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Directive, ElementRef, HostListener } from '@angular/core';
  2.  
  3. @Directive({
  4.     selector: '[appMyFirstDirective]'
  5. })
  6. export class MyFirstDirectiveDirective {
  7.  
  8.     constructor(private element: ElementRef){}
  9.  
  10.     @HostListener('mouseenter')
  11.     publiconMouseEnter(){
  12.  
  13.     }
  14.  
  15.     @HostListener('mouseleave')
  16.     publiconMouseLeave(){
  17.    
  18.     }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment