title: Pipe not found in custom component - Ionic 3 (Lazy Loading)
body: <p>In my ionic 3 project I have my pipes wrapped in a pipes.module.ts and importing it in @NgModule for all my lazy loaded pages - works fine without issues.</p>
  
  <p>However using the same approach in my custom component, using pipe inside the component template results in an error:</p>
  
  <pre><code> Error: Template parse errors: The pipe 'min2duration' could not be found
  </code></pre>
  
  <p>I tried also importing the pipe individualy in my component's .module.ts , but still same issue. The only way i made it work was to import the pipe in my components .ts file , wrap it in a function and us this function   like this:</p>
  
  <pre><code>import { Min2duration  } from '../../pipes/dates/min2duration';
  ...
  
  @Component({ ... })
  class CustomComponent {
    constructor(){ ... }
  
    min2duration(val){
      var m2d = new Min2duration();
      return m2d.transform(val)
    }
  }
  </code></pre>
  
  <p>and in template</p>
  
  <pre><code>&lt;span&gt;{{ min2duration(duration) }}&lt;/span&gt;
  </code></pre>
  
  <p>This way it works, but it doesn't feel like a proper solution, especially as i am using more pipes and more custom components in my project.</p>
  
  <p>Is there a way to make the pipe work also inside a custom component's template like this? </p>
  
  <pre><code>&lt;span&gt; {{ duration | min2duration }}&lt;/span&gt;
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>pipes.module.ts</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  
  // Pipes
  import { DayMonth } from './dates/day-month'
  import { Weekday  } from './dates/weekday';
  import { Min2duration  } from './dates/min2duration';
  import { HighlightPipe } from './highlight/highlight';
  
  @NgModule({
    declarations: [
      DayMonth,
      Weekday,
      HighlightPipe,
      Min2duration
    ],
    imports: [ ],
    exports: [
      DayMonth,Weekday,HighlightPipe,Min2duration 
    ]
  })
  export class PipesModule {}
  </code></pre>