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

Function createShortMethodsWithData

test/angular/1.6/angular.js:12634–12644  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

12632
12633
12634 function createShortMethodsWithData(name) {
12635 forEach(arguments, function(name) {
12636 $http[name] = function(url, data, config) {
12637 return $http(extend({}, config || {}, {
12638 method: name,
12639 url: url,
12640 data: data
12641 }));
12642 };
12643 });
12644 }
12645
12646
12647 /**

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected