title: Angular 4 template "Pipe could not be found"
body: <p>I'm trying to use a custom-built pipe in my <code>Angular 4</code> project. Can't figure out why the compiler doesn't recognize my pipe in the component template.</p>
  
  <p><strong>QFormat pipe</strong></p>
  
  <pre><code>@Pipe({  name: 'qFormat'})
  export class QFormatPipe implements PipeTransform {...}
  </code></pre>
  
  <p><strong>SharedModule</strong></p>
  
  <pre><code>@NgModule({
      declarations: [QFormatPipe],
      exports: [QFormatPipe]
  })
  export class SharedModule { }
  </code></pre>
  
  <p><strong>FeatureModule</strong></p>
  
  <pre><code>@NgModule({
    imports: [SharedModule],
    declarations: [MyComponent]
  })
  export class FeatureModule{ }
  </code></pre>
  
  <p><strong>MyComponent.html</strong></p>
  
  <pre><code>&lt;div&gt;{{someProp | qformat}}&lt;/div&gt;
                    ^^^^^^^
  </code></pre>
  
  <p>The template throws error:</p>
  
  <blockquote>
    <p>Angular: the pipe 'qformat' could not be found</p>
  </blockquote>
  
  <p>Am I missing something?</p>