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

Add pipe that calls functions #207

Open
yelhouti opened this issue Dec 28, 2021 · 0 comments
Open

Add pipe that calls functions #207

yelhouti opened this issue Dec 28, 2021 · 0 comments

Comments

@yelhouti
Copy link

yelhouti commented Dec 28, 2021

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
  • Ngx-pipes version: 1.X.X
    2.7.6

Current behavior
Not possible

Expected behavior
have a pipe that calls a function of the input, these avoids the template from calling multiple times

ex: {{ myObject | function :[true, 'test'] }}

this is will result on calling myObject.function(true, 'test') only once and displaying the input until the value changes.

  1. I am willing to make a PR.
  2. I would really like to hear feedback if you think this is a bad idea.
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

1 participant