title: Angular pipe could not be found using ionic 4
body: <p>recently l create my own pipe in ionic4 name is <code>StatusairportPipe</code> . Then l imported it in <code>app module.ts</code> , now when l am trying to use it l got errors:</p>
  
  <pre><code>ERROR Error: Uncaught (in promise): Error: Template parse errors:
  The pipe 'my' could not be found ("
              &lt;td text-center&gt;{{item?.flight.aircraft.model.code}}&lt;/td&gt;
              &lt;td text-right&gt;{{[ERROR -&gt;]item?.flight.status.generic.status.text | my}}&lt;/td&gt;
  
              &lt;/tr&gt;
  </code></pre>
  
  <p><code>StatusairportPipe</code> model ts</p>
  
  <pre><code>import { Pipe, PipeTransform } from '@angular/core';
  
  @Pipe({
    name: 'my'
  })
  export class StatusairportPipe implements PipeTransform {
  
    public states: Object = {
      'scheduled':   'مجدولة',
  
    };
    transform(value: string, ...args) {
      // This is our catch for data that hasn't interpolated
      // from its source yet, a basic async fix.
      if(value == null) return;
  // Otherwise, lookup the state name from the acronym
      if(this.states[value]){
        return this.states[value];
      } else {
        return value;
      }
    }
  
  }
  </code></pre>
  
  <p>app.module.ts</p>
  
  <pre><code>   import { NgModule } from '@angular/core';
      import { BrowserModule } from '@angular/platform-browser';
      import { RouteReuseStrategy } from '@angular/router';
  
      import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
      import { SplashScreen } from '@ionic-native/splash-screen/ngx';
      import { StatusBar } from '@ionic-native/status-bar/ngx';
  
      import { AppRoutingModule } from './app-routing.module';
      import { AppComponent } from './app.component';
      import { HTTP } from '@ionic-native/http/ngx';
      import { Network } from '@ionic-native/network/ngx';
      import { StatusairportPipe } from './statusairport.pipe';
  
      @NgModule({
        declarations:
         [AppComponent, 
          StatusairportPipe
  
        ],
        entryComponents: [],
  
        imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
          exports:[
      StatusairportPipe,
      AliPipe
    ],
        providers: [
          StatusBar,
          SplashScreen,
          { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
          HTTP,
          Network
        ],
        bootstrap: [AppComponent]
      })
      export class AppModule {}
  </code></pre>