Skip to content

Instantly share code, notes, and snippets.

View stubbies's full-sized avatar

Vald stubbies

  • Otto
  • Athens
View GitHub Profile
@donaldpipowitch
donaldpipowitch / auto-update-service.js
Created June 3, 2014 07:18
Add auto-update functionality to Restangular (only for collection.post, model.get and model.remove in this example)
angular.module('extensions.restangular.auto-update', [
'restangular'
]);
angular.module('extensions.restangular.auto-update')
.factory('RestangularAutoUpdate', function RestangularAutoUpdate(Restangular) {
// properties
var _routes = [];