Created
March 16, 2016 07:58
-
-
Save blacktambourine/3cb3b0f71eed34c9c479 to your computer and use it in GitHub Desktop.
Angular JS Post to Web API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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