fknop / angular-pipes

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

The pipe 'truncate' could not be found #74

Closed cristtopher closed 5 years ago

cristtopher commented 6 years ago

I have not been able to make use of the library, it is not parsing the template...

[ x] bug report
[ ] feature request

Current behavior Angular 6.

<mat-card-title>{{[ERROR ->]tag.name | truncate: 14: '...': true}}</mat-card-title>

app.module.ts:

import { NgArrayPipesModule, NgStringPipesModule } from 'angular-pipes';

imports: [
    ...
    NgArrayPipesModule,
    NgStringPipesModule

component.ts

import { TruncatePipe } from 'angular-pipes';

componente.html

<mat-card-title>{{tag.name | truncate: 14: '...': true}}</mat-card-title>
fknop commented 6 years ago

Sorry for the delay, have you been able to fix your issue ?