So lets say I want to define an var array=['a','b','c']
How do I pass this array into localStorage ?
Should I just simply write $localStorage.data = array;
?
And also how to check if that array $localStorage.data
is not empty and not undefined?
So lets say I want to define an var array=['a','b','c']
How do I pass this array into localStorage ?
Should I just simply write $localStorage.data = array;
?
And also how to check if that array $localStorage.data
is not empty and not undefined?
Yes, you simply put it like this:
Check it like simple variable
ngStorage