@rapropos but in case I have to do lengthy operation… then this should not be the good practice… right??
And suppose if I am retrieving two or more values from localstorage and using those two or more values for data manipulation inside single function i.e. getData()
… then how it could be possible to work with them…
If i have start_time
and stop_time
inside localstorage… i want to use it in the getData() function
then how I can retrieve both those localstorage value…to do operation like this…
var start_time = this.local.get('start_time').then(.......);
var stop_time = this.local.get('stop_time').then(.....)
var elapsed_time = stop_time - start_time;
I think this may not be applicable with above suggested approach…
And if possible can you plz help me out of this