MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / createShortMethodsWithData

Function createShortMethodsWithData

test/fixtures/foo.js:8278–8288  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

8276
8277
8278 function createShortMethodsWithData(name) {
8279 forEach(arguments, function(name) {
8280 $http[name] = function(url, data, config) {
8281 return $http(extend(config || {}, {
8282 method: name,
8283 url: url,
8284 data: data
8285 }));
8286 };
8287 });
8288 }
8289
8290
8291 /**

Callers 1

$HttpProviderFunction · 0.85

Calls 3

forEachFunction · 0.85
$httpFunction · 0.85
extendFunction · 0.85

Tested by

no test coverage detected