Save toogle state in agular js


#1

hi,
i have a list which i populate using json.then i have checkbox for each item.what i do is save the all the item that checked in an array.now is there a way i can save this state in angular or do i have to use localStorage to store array and then every time list is loaded check the items present in localStorage-array?


#2

anyone who can help?


#3

I think you have to use a storage system like localStorage, yes.