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