Save toogle state in agular js

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?

anyone who can help?

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