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
declare let html2canvas: Html2CanvasStatic;
but I get html2canvas is not defined
html2canvas(document.body, {
onrendered: function(canvas) {
document.body.appendChild(canvas);
}
});
I found this file typescript on github html2canvas typescript
how can use this for my application angular2