asafdav / ng-csv

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

Missing docs on promise #34

Closed pbrain19 closed 10 years ago

pbrain19 commented 10 years ago

I am trying to use your promise but do not see any way to use. it..

I am trying to print in an excel sheet an array of data structures that looks like :

{ fname:"somename", lname:"somename", email:"some string" urls:["stringone","stringone","stringone","stringone","stringone"], answers:["stringone","stringone","stringone","stringone","stringone"] }

for some reason everything prints in line. I would assume that it would print out the arrays in one cell in list form... but it does not.

Any thoughts

asafdav commented 10 years ago

I'm not sure I follow you line of thought, but I don't see how this has anything to do with promises ? Can you please explain the expected behavior and the current result ?

pbrain19 commented 10 years ago

current result is https://dl.dropboxusercontent.com/u/82178271/test.csv

I would expect that all the items in the array would print out to 1 cell... in a list fashion. Instead it does something very random and prints on multiple cells to the point you cannot tell which cell is which.

asafdav commented 10 years ago

Hi, Can you share the json object as well ?

asafdav commented 10 years ago

?