0

If i know the absolute path of a CSV file then how can i open the CSV file using AngularJS.Is there any way that i can open it using Excel? Currently i am trying this

<a target="_self" ng-href="{{csv_link}}">download csv</a>

But the csv file is not opening.

Shafil C
  • 11
  • 3

1 Answers1

0

If you wish to download the CSV file than look at the download attribue of an <a></a> tag.

There's a good example in this answer.

And here's mine:

<a target="_self" ng-href="{{csv_link}}" download="optional-custom-name.extension">download csv</a>

EDIT:

As it says in the comments (and in the linked answer), this feature is not fully supported.

Community
  • 1
  • 1
Yoni Levy
  • 1,562
  • 2
  • 16
  • 35