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

Function createShortMethodsWithData

lib/test/angular/1.7.0/angular.js:12636–12646  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected