Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Angular: Making a GET request
var foo_app = angular.module("foo_app", []);
foo_app.controller("bar_controller", ["$scope", "$http",
function ($scope, $http){
$http({
method: "GET",
url: "api/foo/bar/",
}).then(
function successCallback(response){
console.log(response);
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.