What's the secret to accessing the angular.js $http object?
function MyController($scope) {
$http... // not defined
}
You should inject it:
function MyController($scope, $http) {
$http... // now is defined
}
More on dependency injection docs.
$http had told me it had to be injected... thanks.