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

Function createShortMethods

lib/test/angular/1.8.0/angular.js:13258–13267  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

13256
13257
13258 function createShortMethods(names) {
13259 forEach(arguments, function(name) {
13260 $http[name] = function(url, config) {
13261 return $http(extend({}, config || {}, {
13262 method: name,
13263 url: url
13264 }));
13265 };
13266 });
13267 }
13268
13269
13270 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