title: Using input value in ng-repeat
body: <p>I'm having some trouble getting this to work. I have a form inside of a modal and I would like to generate some inputs based on a number the user enters in an input just above.</p>
  
  <pre><code>&lt;form ng-submit="saveNewCategory(cat)"&gt;
        &lt;div class="list"&gt;
          &lt;label class="item item-input"&gt;
          &lt;span class="input-label"&gt;&lt;strong&gt;Name:&lt;/strong&gt;&lt;/span&gt;
            &lt;input type="text" value="" placeholder="Hw" ng-model="cat.title"&gt;
          &lt;/label&gt;
           &lt;label class="item item-input"&gt;
          &lt;span class="input-label"&gt;&lt;strong&gt;Number of {{cat.title}}&lt;/strong&gt;&lt;/span&gt;
            &lt;input type="tel" value="" ng-model="cat.number"&gt;
          &lt;/label&gt;
          &lt;!-- PROBLEM IS HERE --&gt;
          &lt;label class="item item-input" ng-repeat="i in range(cat.number)"&gt;
          &lt;span class="input-label"&gt;&lt;strong&gt;blah&lt;/strong&gt;&lt;/span&gt;
          &lt;input type="tel" value="" &gt;
          &lt;/label&gt;
          &lt;label class="item item-input"&gt;
          &lt;span class="input-label"&gt;&lt;strong&gt;Total Points:&lt;/strong&gt;&lt;/span&gt;
            &lt;input type="tel" value="" ng-model="cat.total"&gt;
          &lt;/label&gt;
          &lt;label class="item item-input"&gt;
          &lt;span class="input-label"&gt;&lt;strong&gt;Weight:&lt;/strong&gt;&lt;/span&gt;
            &lt;input type="tel" value="" ng-model="cat.weight"&gt;
          &lt;/label&gt;
        &lt;/div&gt;
        &lt;div class="padding"&gt;
          &lt;button type="submit" class="button button-block button-positive"&gt;Save&lt;/button&gt;
        &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>In my controller that range function is</p>
  
  <pre><code>$scope.range = function(n) {
      return new Array(n);
  };
  </code></pre>
  
  <p>So why is this not working? Only one input element ever gets generated. Can you not use form model object values in ng-repeat?</p>
  
  <p>Thanks for any and all help!</p>