title: AngularJS - how to put double quotes around a variable passed from a form
body: <p>I am an AngularJS leaner. Please how do I put double quotes around a variable passed from a form in AngularJS. I am trying to compose a Json string which is sent to an RO Server using $Resource:</p>
  
  <pre><code>    app.controller('VanDeleteCtrl', ['$scope','$resource', 'VansFactory', 'VanDeleteFactory', '$location',
                                      function ($scope, $resource,VansFactory, VanDeleteFactory, $location) {
  
          // callback for ng-click 'deleteVan':                                                               
          $scope.deleteCard=function(vanNumber) {
  
              var vanNoObject=
              {
                        "cardNumber" : {
                          "value" : &lt;&lt;the vanNumber param should be here in double quotes&gt;&gt;
  e.g. "value":"12344444"
                         }
              };      
               VanDeleteFactory.save(vanNoObject); 
           }
  
        }]);
  </code></pre>