Skip to content

Instantly share code, notes, and snippets.

@0xjmp
Created March 17, 2015 23:47
Show Gist options
  • Save 0xjmp/f8f183c95571f90ed2e6 to your computer and use it in GitHub Desktop.
Save 0xjmp/f8f183c95571f90ed2e6 to your computer and use it in GitHub Desktop.
var User = $resource('/user/:userId', {userId:'@id'});
User.get({userId:123}, function(user) {
user.abc = true;
user.$save();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment