title: AngularJS - Use ng-repeat to print inputs based off of a number
body: <p>New to AngularJS and have question on how to use the ng-repeat.</p>
  
  <p>Currently I can only find examples where you read from a service, and then ng-repeat loops over that.</p>
  
  <p>My situation is a admin can create an invitation for guests and set a property called:</p>
  
  <pre><code>total_in_party = 4;
  </code></pre>
  
  <p>Now based off of "total_in_party" I want to 3 input fields, for each guest in the party</p>
  
  <p>Like:</p>
  
  <pre><code>&lt;div ng-repeat="guest in party"&gt;
    &lt;input type="text" ng-model="guest.first_name" /&gt;
    &lt;input type="text" ng-model="guest.last_name" /&gt;
    &lt;select ng-model="selectedGuestMeal" ng-options="meal.id as meal.name for meal in meals"&gt;&lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>For this case, it should print those 3 input fields 4 times.</p>
  
  <p>I think I am close, just need to know how to create the party object if I have no data stored in it yet?</p>
  
  <p>If I am doing this completely wrong - don't hesitate to inform me!</p>