Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of import { Angular2Csv } from 'angular2-csv/Angular2-csv'; #66

Open
nrehm opened this issue Jul 26, 2018 · 22 comments
Open

Removal of import { Angular2Csv } from 'angular2-csv/Angular2-csv'; #66

nrehm opened this issue Jul 26, 2018 · 22 comments

Comments

@nrehm
Copy link

nrehm commented Jul 26, 2018

Thanks for the great library on the recent release you decided to remove a valid use case of constructing an csv export via function.

report() {
return new Angular2Csv(items, report, options);
}

What was the reason behind this and would you re-add this functionality or did i just miss where it moved?

@kosmas58
Copy link

Javier, many thanks for upgrading to Angular 6. But I also miss the Angular2Csv function, that I'm using in my frontend app.

@sgentile
Copy link

Yes, same here, we don't use the component, just the Angular2Csv function itself- thank you

@naka-mura
Copy link

same as sgentile & kosmas58.
Before we start new Angular2Csv(data, filename, options) command we must collect data which depends on other items like dates...

@ckreedy
Copy link

ckreedy commented Aug 3, 2018

I really liked the Angular2Csv command as well and may roll back to an older version to regain that functionality.

@javiertelioz
Copy link
Owner

Hello everyone,

I'm working, to have the previous format (Angular2Csv) and the new one that is per component.

Sorry for the inconvenience.

I hope to have it as soon as possible.

Thank you so much for the comments. They help me a lot to continue working in this library.

Greetings.

@pjmagee
Copy link

pjmagee commented Aug 9, 2018

Agreed. We use the function which is being called by a custom download button event with angular material. So the component may seem like a nice option however we really need the API method.

@MattHubbell
Copy link

Hi Javier,
Any word on when function Angular2Csv() will be back in the build?
Thanks,
Matt

@JamboBuenna
Copy link

Agreed, thank you for the work, but any updates?

@jakeleveroni
Copy link

Any updates on this issue? Still something I'd really like to see make it back into this package.

@noumanbhatti
Copy link

What's the alternate of this?
how to download CSV on button click using this ?
<angular2csv [data]="data" filename="test.csv" [options]="options">

@MatthewHubbell
Copy link

What's the alternate of this?
how to download CSV on button click using this ?
<angular2csv [data]="data" filename="test.csv" [options]="options">

You can use version 2.5. It will complain a bit during install but you can ignore the warnings.

npm install --save [email protected]

@mukunku
Copy link

mukunku commented Nov 6, 2018

Any updates on returning Angular2Csv to the latest version?

@lucasctd
Copy link

Still waiting for this...

@sgentile
Copy link

sgentile commented Jan 19, 2019 via email

@jessycormier
Copy link

@sgentile This isn't possible if you've upgraded your angular project. I had to drop the usage of this solution because of that reason alone.

@sgentile
Copy link

sgentile commented Jan 20, 2019 via email

@lucasctd
Copy link

@sgentile Yeah, If I use version 0.2.5, it works on Angular 6 (with some compatibility warnings). It was not working cuz I was using version 0.2.8 which works on Angular 4 but it does not on Angular 6, so I had to downgrade even more and everything worked as expected.

@shannon-kay
Copy link

Does version 0.2.5 work with Angular 8? I've just upgraded our app from Angular 4 to 8, and am getting the below errors when building. I'm also using Angular2Csv(), and don't want to upgrade because of the change of functionality. I see these errors:

error "angular2-csv#@angular/core@^2.0.0||^4.0.0" doesn't satisfy found match of "@angular/[email protected]"
error "angular2-csv#@angular/http@^2.0.0||^4.0.0" doesn't satisfy found match of "@angular/[email protected]"
error "angular2-csv#rxjs@^5.0.0" doesn't satisfy found match of "[email protected]"

But it seems to still be working. However, I don't want it to break something that I haven't noticed yet. Anyone else using 0.2.5 on Angular 8 successfully?

@ndesimone
Copy link

ndesimone commented May 29, 2020

I have been using it this way for a LONG time without issue.

@bdmostafa
Copy link

import { Angular2Csv } from 'angular2-csv/Angular2-csv'; This does not work for me. I am using Angular 11 and "angular2-csv": "^0.2.9"
Could anyone help me please!

@ndesimone
Copy link

During one of our Angular upgrades, we switched to ngx-csv (relatively easy). We're on Angular 10.2.0.5 at the moment.

@Et3rnal
Copy link

Et3rnal commented Apr 14, 2022

This is still missing and no alternatives
however I'm still using it, just make sure you use the 0.2.5
use npm install --save [email protected] --force

It works with angular 8,9,10,11,12

Looks like the developer was trying to introduce a service but he didn't finish that and it has been years
however if you are new here maybe consider ngx-csv as I think they are the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests