How to delete local Storage array element using angularjs


#1

how to delete local Storage array element using angularjs


#2

No need of Angularjs, You can use Plain ol’ JavaScript to do this work, localStorage.removeItem("someKey").


#3

i am try to this , but i want local storage array counting the elements are deleted 1 by 1 how to do it


#4

i am using this code. but this output is my local storage complete array delete. i want this array inside the values are deleted


#5

I hope this will help you https://github.com/grevory/angular-local-storage#remove.


#6

i am using this code …
return localStorageService.remove(index);

but this error are occred:

[$injector:unpr] Unknown provider: localStorageServiceProvider <- localStorageService <- Editform


#7

did you installed this module ?


#8

no, i am not installed this module


#9

First read instructions carefully https://github.com/grevory/angular-local-storage#get-started.
Then retry


#10

i am using yarrrr bt dynamic errors are increase…


#11

i am now installing that module

now this error occur:

ionic.bundle.js:17917 Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to:


#12

my all array are store now in local storage…