Hi you all, I am an ng newbie, so maybe you would give me a clue on this. I have a method which makes a Post to a remote api and receives a blob containg a file. It looks like this: // ... public downloadExcel(): void { const url: string = "http://myremoteapi..."; this.http.post(url, data.body, { responseType: 'blob' }).subscribe((response: Blob) => { saveAs(response, data.fileName + '.xlsx'); ); } //... In this case, the filename is created inside the function. Everything is fine. Now, I need to use the filename that is being returned by the api. How can I achieve this? Any help will be highly appreciated! Txs in adv, Ariel
-- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.