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

Function createShortMethodsWithData

test/angular/1.2/angular.js:8386–8396  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

8384
8385
8386 function createShortMethodsWithData(name) {
8387 forEach(arguments, function(name) {
8388 $http[name] = function(url, data, config) {
8389 return $http(extend(config || {}, {
8390 method: name,
8391 url: url,
8392 data: data
8393 }));
8394 };
8395 });
8396 }
8397
8398
8399 /**

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected