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

Function createShortMethodsWithData

test/angular/1.5/angular.js:11958–11968  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

11956
11957
11958 function createShortMethodsWithData(name) {
11959 forEach(arguments, function(name) {
11960 $http[name] = function(url, data, config) {
11961 return $http(extend({}, config || {}, {
11962 method: name,
11963 url: url,
11964 data: data
11965 }));
11966 };
11967 });
11968 }
11969
11970
11971 /**

Callers 1

$HttpProviderFunction · 0.70

Calls 3

forEachFunction · 0.70
$httpFunction · 0.70
extendFunction · 0.70

Tested by

no test coverage detected