I want to download/save .svg from the DOM. I have embedded my svg file in Object element and updating dynamically some of the elements inside SVG and styling it in my Angular 7 application.
<object id="svg1" data="assets/10026_019.svg" type="image/svg+xml" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"></object>
<button (click)="downloadSVG()">Download SVG file</button>
After updating SVG I need to download/save the entire svg contnet in .svg file. or any other alternate options availble for to download updated svg file?