As other commenters said you should look at your controller declaration, you need to 'inject' the $http service:
angular.module('myApp')
.controller('messageController', ['$scope', '$http', function($scope, $http){
$http.get()
.success()
.error();
}]);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…