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

Function createShortMethods

test/angular/1.3/angular.js:9613–9622  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

9611
9612
9613 function createShortMethods(names) {
9614 forEach(arguments, function(name) {
9615 $http[name] = function(url, config) {
9616 return $http(extend(config || {}, {
9617 method: name,
9618 url: url
9619 }));
9620 };
9621 });
9622 }
9623
9624
9625 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