I had a code like below in angularjs 1
var htmlval = $compile(myWindow.document.getElementById("myDiV").outerHTML)($scope);
which i was using to get the scope compiled to html and get the final dom. Angular 4 we don't have scope. Is there a way to do the same. I was using this for getting data to be printed.