Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting csv file from Spring to Angular  RSS feed

 
kuhu vora
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am  trying to send a CSV file from my Spring controller to Angular to show on my HTML page. My request gives a 200 but the content type is coming 0. I read other similar questions but was unable to solve my issue. I am really new in both Angular and Spring. Please help.

My Spring controller:


My Angular controller:



I am getting undefined when I try to print the response:
Capture.PNG
[Thumbnail for Capture.PNG]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!