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

Function createShortMethodsWithData

test/angular/1.7/angular.js:13205–13215  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

13203
13204
13205 function createShortMethodsWithData(name) {
13206 forEach(arguments, function(name) {
13207 $http[name] = function(url, data, config) {
13208 return $http(extend({}, config || {}, {
13209 method: name,
13210 url: url,
13211 data: data
13212 }));
13213 };
13214 });
13215 }
13216
13217
13218 /**

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected