how to make my local storage key dynamic? like here it creates the key as ng-list:
I want to make my key dynamic depending on the data i am getting. Replacing “list” with any other word just change the key of local storage statically. Please help me with this.