This commit is contained in:
Anton Georgiev 2014-05-12 10:34:06 -04:00
parent f35eb3dc02
commit 66bcba19d1

View File

@ -1,15 +0,0 @@
var myModule = angular.module('landingPage', []);
myModule.controller('MainCtrl', function($scope, $http) {
//$scope.username = "antobinary";
/*$scope.postUsername = function(username) {
$http.post('http://192.168.0.203:4000/login?username=jojo', $scope.username);
//alert("Surprise!!");
}*/
$scope.postUsername = function(username) {
console.log("the passed uname=" + this.username);
$http.post('http://192.168.0.203:4000/login?username=' + $scope.username).success(function(res){
console.log("SUCCESS," + JSON.stringify(res.hi));
});
}
});