Skip to content

Instantly share code, notes, and snippets.

@carusog
Last active April 8, 2019 07:58
Show Gist options
  • Save carusog/79ea4711457fd57f0843d0d681becc2a to your computer and use it in GitHub Desktop.
Save carusog/79ea4711457fd57f0843d0d681becc2a to your computer and use it in GitHub Desktop.
how to access your component element instance
import {
ElementRef
} from '@angular/core';
// omitted code
constructor(private el: ElementRef) {
console.log('###element', el);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment