title: How to post ng-repeat Object data? i tried this way but not working
body: <p>How to post ng-repeat Object data? i tried this way but not working.</p>
  
  <pre><code>&lt;body ng-controller="mainCtrl as MC"&gt;
  &lt;div&gt;
      &lt;div ng-repeat="(item,value) in MC.items"&gt;
          {{item}} &lt;input type="text" ng-model="value"/&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;button ng-click="MC.submitMe()"&gt;Save&lt;/button&gt;
  </code></pre>
  
  <p></p>
  
  <p>Controller:</p>
  
  <pre><code>mc.items = {prompt: 'prompt 1', value: 'value 1'};
  
  mc.submitMe = function(){
      var url = 'http://serverUrl';
  
      //sample post code:
      //$http.post(url, self.items);
  
      //debug:
      alert('post data to ' + url + '\n' + JSON.stringify(mc.items));
  };
  </code></pre>