Comments (5)
You can easily create a function on your scope that filters the object
from ng-csv.
Yes, I can create the filter function, as I have but it's done in javascript and needs to be used before calling your ng-csv. However, as you replied to me in closing my other request you've said I need to use the directive if I need the download functionality (which I do). So, is there another path? It seems to me I need to pre-filter the object first, but I need to have the download capability that won't let me pre-filter the object. Could you possibly filter out the nonsense from the resource like you've already done with the hash of an object? Is there something I'm missing?
-----Original Message-----
From: Asaf David [mailto:[email protected]]
Sent: Tuesday, September 16, 2014 1:30 AM
To: asafdav/ng-csv
Cc: Conner, Barry Contractor DC3/DCCI
Subject: Re: [ng-csv] Specify which fields are included from object? (#54)
You can easily create a function on your scope that filters the object
—
Reply to this email directly or view it on GitHub #54 (comment) . https://github.com/notifications/beacon/8627761__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNjQ2NDU4NCwiZGF0YSI6eyJpZCI6NDI1MDMwNzN9fQ==--f5a8fb8f20f7e50f9692fe6f0fd5e15e3b75c706.gif
from ng-csv.
I think you didn't understand me or I didn't understand you,
You can still use the directive and instead of providing the object itself
you can provide a scope method, there's no conflict here.
On Tue, Sep 16, 2014 at 2:40 PM, axewelder [email protected] wrote:
Yes, I can create the filter function, as I have but it's done in
javascript and needs to be used before calling your ng-csv. However, as you
replied to me in closing my other request you've said I need to use the
directive if I need the download functionality (which I do). So, is there
another path? It seems to me I need to pre-filter the object first, but I
need to have the download capability that won't let me pre-filter the
object. Could you possibly filter out the nonsense from the resource like
you've already done with the hash of an object? Is there something I'm
missing?-----Original Message-----
From: Asaf David [mailto:[email protected]]
Sent: Tuesday, September 16, 2014 1:30 AM
To: asafdav/ng-csv
Cc: Conner, Barry Contractor DC3/DCCI
Subject: Re: [ng-csv] Specify which fields are included from object? (#54)You can easily create a function on your scope that filters the object
—
Reply to this email directly or view it on GitHub <
https://github.com/asafdav/ng-csv/issues/54#issuecomment-55697526> . <
https://github.com/notifications/beacon/8627761__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNjQ2NDU4NCwiZGF0YSI6eyJpZCI6NDI1MDMwNzN9fQ==--f5a8fb8f20f7e50f9692fe6f0fd5e15e3b75c706.gif>—
Reply to this email directly or view it on GitHub
#54 (comment).
from ng-csv.
Ah, nice. Thanks for the clarification. The documentation is not clear in that regard, at least to me. This works fine now.
-----Original Message-----
From: Asaf David [mailto:[email protected]]
Sent: Tuesday, September 16, 2014 11:17 AM
To: asafdav/ng-csv
Cc: Conner, Barry Contractor DC3/DCCI
Subject: Re: [ng-csv] Specify which fields are included from object? (#54)
I think you didn't understand me or I didn't understand you, You can still use the directive and instead of providing the object itself you can provide a scope method, there's no conflict here.
On Tue, Sep 16, 2014 at 2:40 PM, axewelder [email protected] wrote:
Yes, I can create the filter function, as I have but it's done in
javascript and needs to be used before calling your ng-csv. However,
as you replied to me in closing my other request you've said I need to
use the directive if I need the download functionality (which I do).
So, is there another path? It seems to me I need to pre-filter the
object first, but I need to have the download capability that won't
let me pre-filter the object. Could you possibly filter out the
nonsense from the resource like you've already done with the hash of
an object? Is there something I'm missing?-----Original Message-----
From: Asaf David [mailto:[email protected]]
Sent: Tuesday, September 16, 2014 1:30 AM
To: asafdav/ng-csv
Cc: Conner, Barry Contractor DC3/DCCI
Subject: Re: [ng-csv] Specify which fields are included from object?
(#54)You can easily create a function on your scope that filters the object
—
Reply to this email directly or view it on GitHub <
https://github.com/asafdav/ng-csv/issues/54#issuecomment-55697526> . <
https://github.com/notifications/beacon/8627761__eyJzY29wZSI6Ik5ld3NpZ
XM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNjQ2NDU4NCwiZGF0YSI6eyJpZCI6NDI1MDMwNzN
9fQ==--f5a8fb8f20f7e50f9692fe6f0fd5e15e3b75c706.gif>—
Reply to this email directly or view it on GitHub
#54 (comment).
—
Reply to this email directly or view it on GitHub #54 (comment) . https://github.com/notifications/beacon/8627761__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNjQ5OTg0MCwiZGF0YSI6eyJpZCI6NDI1MDMwNzN9fQ==--384398d1d0db227b4ef8b6884a0311e9959e7697.gif
from ng-csv.
Great I'm glad I could help
On Tue, Sep 16, 2014 at 8:19 PM, axewelder [email protected] wrote:
Ah, nice. Thanks for the clarification. The documentation is not clear in
that regard, at least to me. This works fine now.-----Original Message-----
From: Asaf David [mailto:[email protected]]
Sent: Tuesday, September 16, 2014 11:17 AM
To: asafdav/ng-csv
Cc: Conner, Barry Contractor DC3/DCCI
Subject: Re: [ng-csv] Specify which fields are included from object? (#54)I think you didn't understand me or I didn't understand you, You can still
use the directive and instead of providing the object itself you can
provide a scope method, there's no conflict here.On Tue, Sep 16, 2014 at 2:40 PM, axewelder [email protected]
wrote:Yes, I can create the filter function, as I have but it's done in
javascript and needs to be used before calling your ng-csv. However,
as you replied to me in closing my other request you've said I need to
use the directive if I need the download functionality (which I do).
So, is there another path? It seems to me I need to pre-filter the
object first, but I need to have the download capability that won't
let me pre-filter the object. Could you possibly filter out the
nonsense from the resource like you've already done with the hash of
an object? Is there something I'm missing?-----Original Message-----
From: Asaf David [mailto:[email protected]]
Sent: Tuesday, September 16, 2014 1:30 AM
To: asafdav/ng-csv
Cc: Conner, Barry Contractor DC3/DCCI
Subject: Re: [ng-csv] Specify which fields are included from object?
(#54)You can easily create a function on your scope that filters the object
—
Reply to this email directly or view it on GitHub <
https://github.com/asafdav/ng-csv/issues/54#issuecomment-55697526> . <
https://github.com/notifications/beacon/8627761__eyJzY29wZSI6Ik5ld3NpZ
XM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNjQ2NDU4NCwiZGF0YSI6eyJpZCI6NDI1MDMwNzN
9fQ==--f5a8fb8f20f7e50f9692fe6f0fd5e15e3b75c706.gif>—
Reply to this email directly or view it on GitHub
#54 (comment).—
Reply to this email directly or view it on GitHub <
https://github.com/asafdav/ng-csv/issues/54#issuecomment-55759021> . <
https://github.com/notifications/beacon/8627761__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNjQ5OTg0MCwiZGF0YSI6eyJpZCI6NDI1MDMwNzN9fQ==--384398d1d0db227b4ef8b6884a0311e9959e7697.gif>—
Reply to this email directly or view it on GitHub
#54 (comment).
from ng-csv.
Related Issues (20)
- JSON/JS array format HOT 3
- cannot use Promise to retrieve header HOT 1
- ng-csv perforamance with large number of dataset
- do you know the MIME type of the download
- Ignore columns of type object HOT 1
- .bind instead of .on
- Problem with BOM and Saving files in Excel HOT 1
- Create default options object when none is provided
- leading zeros for string field
- safari can't download csv file HOT 2
- generate object HOT 2
- How to use "text delimiter" attribute?
- Save As? HOT 1
- Field with leading zeros being treated as a number rather than a string HOT 1
- Labels options requires all objects to have all keys present
- ng-csv not supported in Edge
- Issues in Chrome 65 HOT 14
- Not downloading on current window
- How to add more than one header? HOT 2
- Cant add txtDelim when the seprator is not equals to (,) without setting quoteStrings to true
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-csv.