Me da el siguiente error:
declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation
Donde app.module.ts
:
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { TabsPage } from '../pages/tabs/tabs';
import { PendientesPage } from '../pages/pendientes/pendientes';
import { LeidosPage } from '../pages/leidos/leidos';
import { TodosPage } from '../pages/todos/todos';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
//utilitarios
import { GenerarCodigoControl } from '../utilitarios/generar.codigo.control';
@NgModule({
declarations: [
MyApp,
TodosPage,
LeidosPage,
PendientesPage,
TabsPage,
GenerarCodigoControl
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
TodosPage,
LeidosPage,
PendientesPage,
TabsPage,
GenerarCodigoControl
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
})
export class AppModule {}
Y el otro código de GenerarCodigoControl:
import { Validar } from './validar';
import { AllegedRc4 } from './allegedrc4';
import { Base64 } from './base64';
import { Verhoeff } from './verhoeff';
export class GenerarCodigoControl {
//var oValidar: Validar;
constructor(private oValidar:Validar, private oAllegedRc4:AllegedRc4, private oBase64:Base64,private oVerhoeff:Verhoeff){
}
enviarDatos1(){
this.oValidar.validarDatos(2345,334,45,'25/09/2018',232,'Sesamo');
}
}
¿Cual es el error? Gracias de antemano.