Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

657
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!