I need to use a global info in my project.
I try to do like this:
app.service('userData',function(){
var data;
this.set = function(value) {
return data = value;
}
this.data = function() {
return data;
}
});
But if I do refresh on the page, I lost it.
What's the best way to do it?
Thanks, Knot