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

Function createShortMethods

test/angular/1.5/angular.js:11946–11955  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

11944
11945
11946 function createShortMethods(names) {
11947 forEach(arguments, function(name) {
11948 $http[name] = function(url, config) {
11949 return $http(extend({}, config || {}, {
11950 method: name,
11951 url: url
11952 }));
11953 };
11954 });
11955 }
11956
11957
11958 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