0
我想从离子储存中获得价值,但我正在从功能中获得价值。离子服务中离子储存的价值没有得到
let xyz = '';
this.storage.get('user').then(function (response) {
xyz = response.accessToken;
console.log('in',xyz);
});
console.log('out', xyz);
//I am getting the value in the console in but not getting the console out.
//I want to use that token out side of this function.How can I get this token from storage?