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

926
Vistas
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?

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

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;
  }
over 4 years ago · Santiago Trujillo Denunciar

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));
over 4 years ago · Santiago Trujillo Denunciar

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.

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