<form method="get" ng-submit="submit()">
Name :<input type="text" ng-model="uname">
pwd:<input type="password" ng-model="pwd">
<button ng-click="submit()">submit</button>
</form>
<script>
var app=angular.module("formmodule",[]);
app.controller("submitController",function submit($scope,$http){
var uname = $scope.uname;
var pwd= $scope.pwd;
var url = 'http://localhost:5000/users/uname';
$http.get(url).success(
function(data)
{
$scope.output = data;
});
});
</script>
</body>