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?
I'm doing it like this:
ngOnInit() {
console.log(" Ticket initialized");
this.getBranchTickets().then(data => console.log(data));
}
getBranchTickets() {
return this.ticketService.getBranchTickets().$promise;
}
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));
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.