MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / createShortMethods

Function createShortMethods

code/songhop/www/lib/angular/angular.js:9503–9512  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

9501
9502
9503 function createShortMethods(names) {
9504 forEach(arguments, function(name) {
9505 $http[name] = function(url, config) {
9506 return $http(extend(config || {}, {
9507 method: name,
9508 url: url
9509 }));
9510 };
9511 });
9512 }
9513
9514
9515 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