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

Function createShortMethodsWithData

test/angular/1.3/angular.js:9625–9635  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

9623
9624
9625 function createShortMethodsWithData(name) {
9626 forEach(arguments, function(name) {
9627 $http[name] = function(url, data, config) {
9628 return $http(extend(config || {}, {
9629 method: name,
9630 url: url,
9631 data: data
9632 }));
9633 };
9634 });
9635 }
9636
9637
9638 /**

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected