use html2canvas in angular code example
Example 1: html2canvas angular
npm install html2canvas
Example 2: html2canvas angular
import html2canvas from 'html2canvas';
npm install html2canvas
import html2canvas from 'html2canvas';