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

Function createShortMethods

test/angular/1.4/angular.js:10760–10769  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

10758
10759
10760 function createShortMethods(names) {
10761 forEach(arguments, function(name) {
10762 $http[name] = function(url, config) {
10763 return $http(extend({}, config || {}, {
10764 method: name,
10765 url: url
10766 }));
10767 };
10768 });
10769 }
10770
10771
10772 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