How to generate an output file PDF using html2canvas with angular2
I tried to import the file html2canvas typescript and made a declaration like this to use it
If you are using Angular 4 you can include html2canvas under scripts list in .angular-cli.json as below
"scripts": [
"../node_modules/html2canvas/dist/html2canvas.min.js"
]
After that import it in your class as below
import * as html2canvas from "html2canvas"
and then use it in your functions as below
html2canvas(parameters);