I get ZoneAwarePromise, and when I registered it in the console, I found that it contains __zone_symbol__value. I was wondering if it is possible to set a variable equal to __zone_symbol__value?
As you know, storage.get returns a promise, not a value. You need to deploy the promise in .then
strorage.get('key') .then( res => console.log(res));
I do it like this:
ngOnInit() { console.log(" Ticket initialized"); this.getBranchTickets().then(data => console.log(data)); } getBranchTickets() { return this.ticketService.getBranchTickets().$promise; }
in your view you can access using async for the channel
(variable | async) ?. field
Make sure you are not returning an asynchronous object (e.g. Observable or Promise) instead of the primitive, Object, Array e etc
Source: https://habr.com/ru/post/1675992/More articles:Convert constexpr struct to runtime - c ++How to use Rails 5.1.0 and jQuery - ruby | fooobar.comHow to mock / replace an object getter function using Jest? - javascriptChange the orientation of a group of buttons vertically / horizontally using BS4 classes - twitter-bootstrap-4Обмен сообщениями с помощью Java - Python - javaSerialization Exception: unexpected character << - c #Make class serializable in PCL - c #how to set default value as guid when field is empty during deserialization - jsonHow to understand H2OModelMetrics object metrics through h2o.performance - rAWS API Gateway + AWS ECS + OAuth2 Password Grant - javaAll Articles