title: Error: $ is not defined (Angularjs )
body: <p>When i call submit function it calls but give error  like this , what is the error in this function .</p>
  
  <pre><code>Error: $ is not defined
  $scope.submit@http://localhost/angularAjax/app.js:19:21
  Mc/u/&lt;@https://code.angularjs.org/1.0.3/angular.min.js:70:297
  dc[c]&lt;/&lt;/&lt;/&lt;@https://code.angularjs.org/1.0.3/angular.min.js:140:1
  Sc/this.$get&lt;/e.prototype.$eval@https://code.angularjs.org/1.0.3/angular.min.js:86:306
  Sc/this.$get&lt;/e.prototype.$apply@https://code.angularjs.org/1.0.3/angular.min.js:86:412
  dc[c]&lt;/&lt;/&lt;@https://code.angularjs.org/1.0.3/angular.min.js:140:505
  pc/c/&lt;@https://code.angularjs.org/1.0.3/angular.min.js:22:460
  m@https://code.angularjs.org/1.0.3/angular.min.js:6:191
  pc/c@https://code.angularjs.org/1.0.3/angular.min.js:22:433
  </code></pre>
  
  <p>Here is code :  </p>
  
  <pre><code>  var app = angular.module('myApp', []);
      app.controller('myCtrl', function ($scope, $http) {
          $scope.hello = {name: "Boaz"};
          $scope.newName = "";
          /*$scope.sendPost = function() {
              var data = $.param({
                  json: JSON.stringify({
                      name: $scope.newName
                  })
              });
              $http.post("/echo/json/", data).success(function(data, status) {
                  $scope.hello = data;
              })
          }   */                
           $scope.submit = function () {       
                  $http({
                          method  : 'POST',
                          url     : 'pro.php',
                          data    : $.param($scope.contact), // pass in data as strings
                          headers : { 'Content-Type': 'application/x-www-form-urlencoded' }  // set the headers so angular passing info as form data (not request payload)
                                    }) .success(function (data) {
                      alert(data);
                      console.log(data);               
                  });  
                  }
  
      });
  </code></pre>
  
  <p>Angular is working , just ajax call fails</p>