MCPcopy Index your code
hub / github.com/angular-ui/ui-router / createShortMethods

Function createShortMethods

test/angular/1.6/angular.js:12622–12631  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

12620
12621
12622 function createShortMethods(names) {
12623 forEach(arguments, function(name) {
12624 $http[name] = function(url, config) {
12625 return $http(extend({}, config || {}, {
12626 method: name,
12627 url: url
12628 }));
12629 };
12630 });
12631 }
12632
12633
12634 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