Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda