Answers for "angular json to file and download"

0

angular json to file and download

constructor(private sanitizer: DomSanitizer){}

    generateDownloadJsonUri() {
        var theJSON = JSON.stringify(this.resJsonResponse);
        var uri = this.sanitizer.bypassSecurityTrustUrl("data:text/json;charset=UTF-8," + encodeURIComponent(theJSON));
        this.downloadJsonHref = uri;
    }
Posted by: Guest on July-28-2021

Code answers related to "angular json to file and download"

Code answers related to "Javascript"

Browse Popular Code Answers by Language