angular - Access whole DOM in Angularl2 RC -


in angular 2 application need check whether or not chrome extension installed. google recommends here check dom element added extension. i'm implementing extension it's no problem add element when extension loads.

but i'm struggling angular side. have service handles logic extension (install etc.), , implement check there well. unfortunately not figure out how access whole dom.

there injectable class elementref property nativeelement, gives me access dom element belongs component. since element added extension direct child of body not work here.

does how access whole dom in angular 2 compliant way?

edit please check link provided tschuege if tempted used solution below.

import renderer:

import {renderer} '@angular/core'; 

inject it:

constructor(private renderer: renderer) 

then element reference issuing:

renderer.selectrootelement(<elementid>) 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -