How could I define global @pipe() which would be used in all lazy loaded module in Angular without using shared module?

589 Views Asked by At

I am using a pipe in angular to return a value. To use this pipe I need to declare this pipe in every lazy loaded module. I am using this pipe with shared module. But I think this is not good practice to import pipemodule in every module file to use this. Is there any best method? Here is live example link https://stackblitz.com/edit/angulattesting

1

There are 1 best solutions below

0
On

The solution is shared module. https://stackblitz.com/edit/angulattesting but I think this is not best approach.