title: Global pipe in Angular 2
body: <p>I want to make a pipe available in all the app. Acording with what I read in the Angular docs and internet, if I declare a pipe into the root module declaratios, it make's the pipe available in all the application.  I have this AppModule code:</p>
  
  <pre class="lang-js prettyprint-override"><code>@NgModule({
    imports:      [ BrowserModule, NavbarModule],
    declarations: [ AppComponent, TranslatePipe],
    bootstrap:    [ AppComponent],
  })
  export class AppModule { }
  </code></pre>
  
  <p>And this for the child module: </p>
  
  <pre class="lang-js prettyprint-override"><code>@NgModule({
    imports:      [ CommonModule],
    declarations: [ NavbarMenuComponent],//&lt;---Call the pipe in this component
  })
  
  export class NavbarModule { }
  </code></pre>
  
  <p>The pipe:</p>
  
  <pre class="lang-js prettyprint-override"><code>@Pipe({
      name: 'translate',
      pure: false
  })
  
  export class TranslatePipe implements PipeTransform {
      constructor() { }
  
      transform(value: string, args: any[]): any {
          return value + " translated";
      }
  }
  </code></pre>
  
  <p>But whe I call the pipe on the NavbarMenuComponent template it thows this error:</p>
  
  <blockquote>
    <p>'The pipe "translate" could not be found'</p>
  </blockquote>
  
  <p>If I declare the pipe in the child module declarations it works,but I need to make the pipe global, so when the app grows up, I don't need to declare this pipe(and other global pipes) in all modules. Is there a way to make the pipe global?</p>