Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
Angular 12 Use pipe from component

Hello I have problems to use from a component in Angular 12 (from the view if it works).

It is a pipe that I installed, although I have already tried with several and the same thing happens.

Specifically, it is this https://www.npmjs.com/package/@josee9988/filter-pipe-ngx

I do this:

app.module.ts

..

import { FilterModule } from '@josee9988/filter-pipe-ngx';
..

imports: [FilterModule],
..

providers: [FilterModule],
..

Y en comp1.component.ts

import { FilterModule } from '@josee9988/filter-pipe-ngx';

..

constructor(private FilterModule_: FilterModule) { }

..

funcion1 () {
   this.v1 = this.FilterModule_.transform(this.v2, "gfg", v3);
}

..

And he tells me that "error TS2339: Property 'transform' does not exist on type 'FilterModule'"

And it won't even let me use ng serve.

Thank.

Best regards.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You trying to inject a module, but you need a pipe.

constructor(private filterPipe: FilterPipe) { }
...
this.filterPipe.transform(...)

If you will catch NullInjector just provide FilterPipe in the module.

providers: [FilterPipe]
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!