html2canvas import angular code example
Example 1: html2canvas angular
npm install html2canvas
Example 2: html2canvas angular
import html2canvas from 'html2canvas';
Example 3: html2canvas angular
html2canvas(document.body).then(function(canvas) {
document.body.appendChild(canvas);
});