In Angular 2 project, I have installed the html2canvas module with version number 0.5.0beta.
Then in my TS file, I have import it as:
import html2canvas from 'html2canvas';
Then in my pdfDownload method, that I have written,
html2canvas (document.getElementById('exportthis'), {
onrendered : function (canvas) {
After this, when I execute the npm start
command, I got error like,
onrendered is not a property defined in html2canvasOptions.
Can anybody help me resolving this issue? This is the first time I am working on angular 2 and html2canvas.