How to insert range of numbers to database in angular
<p>How to insert to database range of numbers like this:</p>

<pre><code>&lt;form&gt;
        &lt;input class="form-control"&gt;&lt;/input&gt;  &lt;!-- insert first number --&gt;
        &lt;input class="form-control"&gt;&lt;/input&gt;  &lt;!-- insert last number --&gt;
        &lt;button class="btn btn-primary"&gt;Add numbers to database&lt;/button&gt;
    &lt;/form&gt;
</code></pre>

<p>in example:</p>

<p>first input: 1
second input: 100</p>

<p>this form should via ng-model add the items [1,2,3,4,5,6,7,8...,100] to database.</p>

<p>I just don't know how to make some loop here.</p>