MCPcopy
hub / github.com/angular-ui/ui-router / createShortMethodsWithData

Function createShortMethodsWithData

test/angular/1.4/angular.js:10772–10782  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

10770
10771
10772 function createShortMethodsWithData(name) {
10773 forEach(arguments, function(name) {
10774 $http[name] = function(url, data, config) {
10775 return $http(extend({}, config || {}, {
10776 method: name,
10777 url: url,
10778 data: data
10779 }));
10780 };
10781 });
10782 }
10783
10784
10785 /**

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected