asafdav / ng-csv

Simple directive that turns arrays and objects into downloadable CSV files
MIT License
573 stars 215 forks source link

how to trigger export via code? #82

Closed fatihpolatli closed 9 years ago

fatihpolatli commented 9 years ago

hi,

how to trigger export function via code instead of button and attribute? i want to export my json data as csv after response of a web service

thanks

asafdav commented 9 years ago

You can use promise, it's supported.