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

3.5K
Views
how can I access the __zone_symbol__value on the ZoneAwarePromise in Angular 2

I am receiving a ZoneAwarePromise and when I logged it to the console I found that it contains a __zone_symbol__value I was wondering if it's possible to set a variable equal to that __zone_symbol__value?

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I'm doing it like this:

  ngOnInit() {    
    console.log(" Ticket initialized");
    this.getBranchTickets().then(data => console.log(data));
  }

  getBranchTickets() {
   return this.ticketService.getBranchTickets().$promise;
  }
about 4 years ago · Santiago Trujillo Report

0

you are receiving this __zone_symbol__value, because you have mistakenly including your async validator returning promise in the sync validators list, try changing the posiiton of your validator, it worked for me.

about 4 years ago · Santiago Trujillo Report

0

As you know storage.get returns a promise, not the value. You'll need to unwrap the promise in a .then

strorage.get('key')
.then( res => console.log(res));
about 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!