I attempted to access a div element in my HTML using ElementRef, document, and $('#ID') but unfortunately, it did not work. I tried implementing this in ngOnInit, ngAfterViewInit, and even in my constructor.
Another method I tried was using @ViewChild.
The issue I am facing is that when I call $('#ID'), it returns undefined until there has been some interaction with the template.
All I need is to simply access a div tag from my HTML page.
(I am currently using Angular 2 rc1 and would appreciate any help in identifying the source of the problem) Thank you!