fknop / angular-pipes

Useful pipes for Angular
https://fknop.gitbook.io/angular-pipes/
MIT License
732 stars 157 forks source link

Modules Imports issues #115

Open EsraaQandel opened 2 years ago

EsraaQandel commented 2 years ago

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

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

Importing NgPipesModule doesn't import NgAbsPipeModule and even importing NgMathPipesModule doesn't import NgAbsPipeModule. I have to explicitly import NgAbsPipeModule for the abs pipe to work.

Expected behavior

Each category of pipes has an exported module. And one module imports all these modules. So for example, importing NgMathPipesModule should import the NgAbsPipeModule. Moreover, importing the NgPipesModule should import ALL modules.

Minimal reproduction of the problem with instructions

1- import NgMathPipesModule or NgPipesModule 2- use the abs pipe in a template i.e.

{{someValue | abs }}

3- it won't work and throw an error that such pipe doesn't exist. note: using angular v11

micaminoff commented 2 years ago

Having the same issue with angular 14 with NgArrayPipesModule and join not being a recognized pipe