Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

666
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda