title: How to use jsPDF with angular 2
body: <p><strong>I got an Error: jsPDF is not defined , I am currenty using following code :</strong></p>
  
  <pre><code>import { Component, OnInit, Inject } from '@angular/core';
  import 'jspdf';
  declare let jsPDF;
  @Component({
    ....
    providers: [
      { provide: 'Window',  useValue: window }
    ]
  })
  export class GenratePdfComponent implements OnInit {
  
    constructor(
      @Inject('Window') private window: Window,
      ) { }
  
    download() {
  
          var doc = jsPDF();
          doc.text(20, 20, 'Hello world!');
          doc.text(20, 30, 'This is client-side Javascript, pumping out a PDF.');    
          doc.save('Test.pdf');
      }
  } 
  </code></pre>
  
  <p><strong>I have install npm of jsPDF but don't know how import jspdf and run with angular-cli: 1.0.0-beta.17</strong></p>