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

664
Vistas
Hi, I'm trying to get value of my ticks but whenever i return any function always getting value with __zone_symbol__state and __zone_symbol__value
  1. which is my function :

    getTicks(){
       return this.storage.get('myData').then((data) => {
           return this.ticks = data.ticks;
       });
     }
    
  2. Here i am getting the value of my function return call

    ionViewDidLoad() {
        this.getTicks();
        console.log('value', this.getTicks());
    }
    

I am getting value like this, i don't want to zone symbol , i want only "63628978458585976676676" my value return.

{ 
__zone_symbol__state: true 
__zone_symbol__value: "636289784552662421"
}
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

getTicks() function is returning a promise object returned by this.storage.get('myData') which you are logging in the console.

You need to print within a then.

ionViewDidLoad() {
    this.getTicks().then(data=>{
        console.log('value', data);
    });
}
over 4 years ago · Santiago Trujillo Denunciar
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