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

Function createShortMethods

test/angular/1.2/angular.js:8374–8383  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

8372
8373
8374 function createShortMethods(names) {
8375 forEach(arguments, function(name) {
8376 $http[name] = function(url, config) {
8377 return $http(extend(config || {}, {
8378 method: name,
8379 url: url
8380 }));
8381 };
8382 });
8383 }
8384
8385
8386 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