title: How to convert html into PDF in angular 6 when using binding
body: <p>I converted html to PDF in angular but the problem is I am using binding to display all the list. I am using list view in loop the PDF convert only one list view it cannot convert whole list into PDF.How to achieve this?</p>
  
  <p>pdf.ts:</p>
  
  <pre><code>export class PDFComponent{
  
   @ViewChild('content') content:ElementRef;
    test:any;
  
   downloadPdf() {
    let doc= new jspdf();
    let specialElememtHandlers = {
      '#editor':function(element,renderer)
      {
        return true;
      }    
    };
    let content =this.content.nativeElement;
    doc.fromHTML(content.innerHTML,15,15, {
      'width':190,
      'elementHandlers':specialElememtHandlers
    });
    doc.save('test.pdf');
    }
  }
  </code></pre>
  
  <p>pdf.html:</p>
  
  <pre><code>  &lt;button class="btn btn-sm btn-white m-b-10 p-l-5" (click)="downloadPDF()"&gt;&lt;/button&gt;
  &lt;ul class="result-list" *ngFor="let reg of test
          id="content" #content&gt;
          &lt;li&gt;
            &lt;div class="result-price" style="background:center #2d353c;color: #fff;"&gt;
              &lt;h3 style="color: #fff"&gt;{{reg.id}}&lt;/h3&gt;
              &lt;h4 style="color: #fff"&gt;{{reg.date}}&lt;/h4&gt;
              &lt;p&gt;
                &lt;small&gt;
                  &lt;b&gt;{{reg.implication}}&lt;/b&gt;
                &lt;/small&gt;
              &lt;/p&gt;
            &lt;/div&gt;
            &lt;div class="result-info"&gt;
              &lt;h4 class="title"&gt;
                {{reg.title}}
              &lt;/h4&gt;
              &lt;br&gt;
              &lt;p class="desc"&gt;
                &lt;b&gt;Summary:&lt;/b&gt; {{reg.desc}}
              &lt;/p&gt;    
               &lt;/div&gt;             
          &lt;/li&gt;          
        &lt;/ul&gt;
  </code></pre>