Problems using $http POST
<p>I am new in angular.js and I need to make form with 2 fields for numbers and when I click on submit i need to send to server with json for request result of suma. It will look like: 4 in first field , 4 in second field and on submit it will return result 8.</p>

<p>Thanks guys. Here is code:</p>

<pre><code>&lt;div ng-app="app" ng-controller="HttpGetController"&gt;
    &lt;p&gt;Num1 
        &lt;input type="number" name="num1" ng-model="num1" required /&gt;
    &lt;/p&gt; 
    &lt;p&gt;Num2: 
        &lt;input type="number" name="num2" ng-model="num2" required /&gt;
    &lt;/p&gt; 
    &lt;button ng-click="SendData()"&gt;Saberi&lt;/button&gt; &lt;hr /&gt; 
         {{ PostDataResponse }}
 &lt;/div&gt;
</code></pre>

<p>JS</p>

<pre><code>var app = angular.module("app", []);
app.controller("HttpGetController", function ($scope, $http) {
    $scope.SendData = function () { 
        var data = $.param({ num1: $scope.num1, num2: $scope.num2 });
        var config = { headers : { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;' } }

        $http.post('localhost:3000', data, config) 
             .success(function (data, status, headers, config) {
                  $scope.PostDataResponse = data;
        })
     }
}); 
</code></pre>