import { AfterContentInit, Component, ElementRef } from '@angular/core';
export class AppComponent implements AfterContentInit {
constructor(private elementRef: ElementRef) { }
const tmp = document.createElement('div');
const el = this.elementRef.nativeElement.cloneNode(true);
this.node = tmp.innerHTML;