Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Last active January 3, 2019 22:38
Show Gist options
  • Save NetanelBasal/37078dde544e7221118b41815cb8c105 to your computer and use it in GitHub Desktop.
Save NetanelBasal/37078dde544e7221118b41815cb8c105 to your computer and use it in GitHub Desktop.
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;
}
}
@ArkageTeam
Copy link

hi, how can I use then this service?

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment