A simple demo showing how to post data using the $resource service in AngularJS.