Skip to content

Instantly share code, notes, and snippets.

@bluehallu
Last active August 29, 2015 13:59
Show Gist options
  • Save bluehallu/10880924 to your computer and use it in GitHub Desktop.
Save bluehallu/10880924 to your computer and use it in GitHub Desktop.
.factory('machinesCache', function() {
var _model = {machines: null};
return {
setMachines: function(data) {
_model.machines = data;
},
getModel: function() {
return _model;
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment