title: How to print a table of numbers using angularJs?
body: <p>I am beginner of angularJs.
  I want to print a number table according to the value inserted into text-box.
  here is my code</p>
  
  <pre><code>&lt;html&gt;
  
      &lt;head&gt;
          &lt;script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
  
          &lt;div ng-app="" ng-controller="number1"&gt;
              Number: &lt;input type="text" ng-model="num1"&gt;&lt;br&gt;
              &lt;br&gt;
  
                  &lt;p&gt;{{num1}}&lt;/p&gt;
  
          &lt;/div&gt;
  
          &lt;script&gt;
              function number1($scope) {
              for(var i; i&lt;=10;i++){
                  $scope.num1 = 1*i
                          }
  
              }
          &lt;/script&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>