Questions tagged angular11

Explore the latest questions and answers asked by our top developers.

On selecting other option of Angular primeng dropdown it scrolls to already selected option

I am using a primeng dropdown(v 11.3.0) on Angular(v 11.0.2). When I try to select another option from dropdown, the. dropdown scrolls to already selected dropdown option. Hence, I am not able to select the new option. Please help! Source: Angular Questions

By hs27
Categorized as angular, angular11, dropdown, primeng Tagged , , ,

How to loop list of array in another response of array of object using *ngfor?

let say I have two responses. one response consist of array, let temp1 = [name, description, address]; second response consist of array of objects, let temp2 = [ { name: "name1", description: "not a current user", address: "address 1", phoneno: 123, check1: true, pined: "no", user: "yes" }, { name: "name2", description: "current user", address: […]

By santhosh lanka
Categorized as angular, angular11, html, typescript Tagged , , ,

how to download PDF from byteArray in angular 11?

I have byte array and I want to download pdf without any library, for example file-saver. service.ts return this.http.get(`${this.invoiceUrl}/GenerateInvoice`, { responseType: "arraybuffer", observe: "response", params } ); component.ts file(byte) { var byteArray = new Uint8Array(byte); var a = window.document.createElement(‘a’); a.href = window.URL.createObjectURL(new Blob([byteArray], { type: ‘application/json’ })); = "data.txt"; // Append anchor to body. […]

By John Doe
Categorized as angular, angular11, download, javascript, pdf Tagged , , , ,

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us