Skip to content

Instantly share code, notes, and snippets.

View Shivvvva's full-sized avatar

Shiva Shivvvva

View GitHub Profile
@Shivvvva
Shivvvva / invoiceprint.component.ts
Last active October 9, 2025 10:19
forkJoin usage
forkJoin({
printres: this.invoiceService.getTemplateById(object),
res: this.invoiceService.getInvoiceDetailsByNo(this.invoiceNo)
}).subscribe(async ({printres, res}) => {
// get template
try {
const data = printres.base64;
const template = atob(data);
this.printpay = this.sanitizeTemplate(template);
this.bindingTypes = await this.bindingTypesService.getBindingTypesFromHtml(this.printpay);