Skip to content

Instantly share code, notes, and snippets.

@blacktambourine
Created March 16, 2016 07:58
Show Gist options
  • Save blacktambourine/3cb3b0f71eed34c9c479 to your computer and use it in GitHub Desktop.
Save blacktambourine/3cb3b0f71eed34c9c479 to your computer and use it in GitHub Desktop.
Angular JS Post to Web API
contactModule.controller('QuoteRequestController', ['$scope', '$q', '$timeout', 'QuoteRequestService', function ($scope, $q, $timeout, QuoteRequestService)
{
$scope.saveData = new QuoteRequestService();
$scope.saveData.Title = "my string value";
$scope.saveData.$save(function ()
{
//do something after save
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment