I’m keeping in session one json arrangement until it’s all right here in the evidence do in the browser everything works fine but the device does not work, saved session. I’m keeping this:
.factory('sessionService',['$http',function($http){
return {
set:function(key,value){
return sessionStorage.setItem(key,JSON.stringify(value));
},
get:function(key){
return JSON.parse(sessionStorage.getItem(key));
},
destroy:function(key){
return sessionStorage.removeItem(key);
},
};
}])