I'm trying to make a login for an ionic (angular) application, and I'd like to use http get. However, it appears to return nothing..
.controller('LoginCtrl', ['$scope','md5', function($scope, $http, md5, $state) {
$scope.data = {};
$scope.login = function() {
var pass = md5.createHash($scope.data.password || '');
$http.get("http://<link>.com")
.then(function(response){ $scope.field = response.data; });
}
}])
$scope.field is just a textfield in the html page. But it just stays blank, whatever the http link is..
edit: and yeah, the pass and credentials aren't used yet, since I first want http get to return something.