Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

242
Vistas
Ionic FormBuilder - Error: Type ImageService does not have 'ɵmod' property

I have a problem, my FormBuilder not funkcioniert , writes for my this problem.

ERROR Error: Uncaught (in promise): Error: Type ImageService does not have 'ɵmod' property. Error: Type ImageService does not have 'ɵmod' property.

This is on my screenenter image description here

My routing.module is

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EmailComposerPage } from './email-composer.page';
import { FormsModule} from '@angular/forms' ;

import { ImageService } from '../email-composer/image.service';

const routes: Routes = [
  {
    path: '',
    component: EmailComposerPage
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes),FormsModule],
  exports: [RouterModule],
  providers: [ImageService],
})
export class EmailComposerPageRoutingModule {}

My ImageService is

import { Injectable } from '@angular/core';
import { EmailComposer } from '@ionic-native/email-composer';

@Injectable()
export class EmailService {

  constructor(private _EMAIL   : EmailComposer) { }
/**
    *
    * @public
    * @method sendMail
    * @param to             {string}    The primary e-mail address
    * @param cc             {string}    The carbon copy e-mail address
    * @param bcc            {string}    The blank carbon copy e-mail address
    * @param attachment     {string}    The attachment to be sent
    * @param subject        {string}    The subject for the e-mail message
    * @param body           {string}    The message content
    *
    */
 sendEmail(to         : string, 
  cc         : string, 
  bcc        : string, 
  attachment : string,
  subject    : string,
  body       : string) : void
{
// Use the plugin isAvailable method to check whether
// the user has configured an email account
this._EMAIL.isAvailable()
.then((available: boolean) =>
{

// Check that plugin has been granted access permissions to 
// user's e-mail account
this._EMAIL.hasPermission()
.then((isPermitted : boolean) =>
{

 // Define an object containing the 
 // keys/values for populating the device 
 // default mail fields when a new message 
 // is created
 let email : any = {
    app             : 'mailto',
    to          : to,
    cc          : cc,
    bcc             : bcc,
    attachments     : [
      attachment
    ],
    subject         : subject,
    body        : body
 };

 // Open the device e-mail client and create 
 // a new e-mail message populated with the 
 // object containing our message data
 this._EMAIL.open(email);
})
.catch((error : any) =>
{
 console.log('No access permission granted');
 console.dir(error);
});
})
.catch((error : any) =>
{
console.log('User does not appear to have device e-mail account');
console.dir(error);
});
}


}

Please help my, whats the problem? Thanks

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda