Created
February 6, 2020 17:29
-
-
Save matheusmurta/bf940009dfd9d87652c1c1947910cc6c to your computer and use it in GitHub Desktop.
Query Selector in Angular
This file contains hidden or 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
constructor(private renderer: Renderer, private elem: ElementRef){} | |
ngAfterViewInit(){ | |
// you'll get your through 'elements' below code | |
let elements = this.elem.nativeElement.querySelectorAll('.classImLookingFor'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment