style a element using element elementreference angular 2 code example
Example: angular elementref
// in template
//<div #myEl></div>
@ViewChild("myEl") el: ElementRef;
ngAfterViewInit(){
this.el.nativeElement.innerHTML = "Hi";
console.log(this.el);
}