title: AngularJS Scope Add value to a model
body: <p>I am working a submit form and I have a hidden input field. I want to set the value with AngularJS, however it will be sent with the form, so it looks like this:</p>
  
  <pre><code>&lt;input type="hidden" ng-model="formData.articleId"&gt;
  </code></pre>
  
  <p>How exactly can I put a value to it with AngularJS? I tried adding ng-value="article._id" to it which added a value field with the id of the article, but it did not parse on submit.</p>
  
  <p>I also tried grabbing this model with AngularJS, but again it did not work:</p>
  
  <pre><code>$scope.formData.articleId = data.article._id;
  </code></pre>
  
  <p>It said: Can not find articleId of undefined</p>
  
  <p>Am I using a wrong approach?</p>