@durvilchat wrote:
hello please help me I have a problem with this function I would like him to return the result of the search in the database my results are always wrong.
test(value) { var res; this.storage.get('age').then((currencies) => { this.getCurrentCurrency().then((val) => { res = value * currencies[val]['rate']; }); }); return res; }
Thanks. I want to return res
Posts: 4
Participants: 2