Last active
January 3, 2019 22:38
-
-
Save NetanelBasal/37078dde544e7221118b41815cb8c105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, Renderer, ElementRef } from '@angular/core'; | |
@Directive({ | |
selector: '[exploreRenderer]' | |
}) | |
export class ExploreRendererDirective { | |
private nativeElement : Node; | |
constructor( private renderer : Renderer, private element : ElementRef ) { | |
this.nativeElement = element.nativeElement; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, how can I use then this service?
thank you