title: Printing HTML content
body: <p>i have been looking around and i see that there is a lot of people with the same problem but so far no solution.</p>
  
  <p>i´m working with angular 5 and angular material in a E-learning application for students and one of the function i need to implement is for printing the document, but i have not found a way to do it, if there is any way to print the content of a <code>div</code> in angular, because i try with this <a href="https://stackoverflow.com/questions/41798492/how-to-make-a-printable-page-in-angular-2">solution</a>
  but doesn´t work, because when i get the innerHTML of the DOM Element, return me the html with angular the code:</p>
  
  <pre><code>                      &lt;!--bindings={
    "ng-reflect-ng-for-of": "[object Object],[object Object"
  }--&gt;&lt;article _ngcontent-c18="" class="ng-tns-c18-3 ng-star-inserted" style=""&gt;
  
                          &lt;!--bindings={
    "ng-reflect-ng-if": "false"
  }--&gt;
  
  
                          &lt;!--bindings={
    "ng-reflect-ng-if": "false"
  }--&gt;
  
  
                          &lt;!--bindings={
    "ng-reflect-ng-if": "true"
  }--&gt;&lt;p _ngcontent-c18="" autocorrect="off" draggable="return false;" oncut="return false" ondragover="return false;" ondrop="return false;" onkeypress="return false" onpaste="false" spellcheck="false" class="ng-tns-c18-3 ng-star-inserted" ng-reflect-ng-class="[object Object]" data-block-id="8f5b8d8f-9027-4c40-b7fe-d5ec90334fd9" contenteditable="true"&gt;Hallo Zusammen,&lt;/p&gt;
  
  
                          &lt;!--bindings={
    "ng-reflect-ng-if": "false"
  }--&gt;
  </code></pre>
  
  <p>and not the content of the container, and give me a error, any idea if there is away to this.</p>