angular-pipes
angular-pipes copied to clipboard
Modules Imports issues
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
Having the same issue with angular 14 with NgArrayPipesModule and join not being a recognized pipe