app factory QueryParameters function var self this self parameters ret

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
app.factory('QueryParameters', function() {
var self = this;
self.parameters = {};
return {
setParameters: function(params) {
self.parameters = params;
},
getParameters: function() {
return self.parameters;
}
}
});