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

Function createShortMethods

lib/test/angular/1.7.0/angular.js:12624–12633  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

12622
12623
12624 function createShortMethods(names) {
12625 forEach(arguments, function(name) {
12626 $http[name] = function(url, config) {
12627 return $http(extend({}, config || {}, {
12628 method: name,
12629 url: url
12630 }));
12631 };
12632 });
12633 }
12634
12635
12636 function createShortMethodsWithData(name) {

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected