Git Product home page Git Product logo

Comments (5)

asafdav avatar asafdav commented on July 26, 2024

You can easily create a function on your scope that filters the object

from ng-csv.

axewelder avatar axewelder commented on July 26, 2024

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.

asafdav avatar asafdav commented on July 26, 2024

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.

axewelder avatar axewelder commented on July 26, 2024

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.

asafdav avatar asafdav commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.