which is my function :
getTicks(){
return this.storage.get('myData').then((data) => {
return this.ticks = data.ticks;
});
}
Here i am getting the value of my function return call
ionViewDidLoad() {
this.getTicks();
console.log('value', this.getTicks());
}
I am getting value like this, i don't want to zone symbol , i want only "63628978458585976676676" my value return.
{
__zone_symbol__state: true
__zone_symbol__value: "636289784552662421"
}
getTicks() function is returning a promise object returned by this.storage.get('myData') which you are logging in the console.
You need to print within a then.
ionViewDidLoad() {
this.getTicks().then(data=>{
console.log('value', data);
});
}