title: display angular variable values in table according to their position
body: <p>I have a angular variable which has values are [ 170,1,130,3,134,4.... and so on].I want to display it in form such that the values appear in table in two columns for eg. all even position values in one column and all odd position values in other column. </p>
  
  <pre><code>col1    col2
  170     1
  130     3
  134     4
  </code></pre>
  
  <p>I have written the following code but it displays all code in a single column. Plz. suggest a solution.Thanks in advance</p>
  
  <pre><code>&lt;table class="table"&gt;
       &lt;tr ng-repeat="item in output track by $index" ng-switch="$even" ng-class-even="'even'" ng-class-odd="'odd'"&gt;
            &lt;td ng-switch-when="true"&gt;{{item}}&lt;/td&gt;
            &lt;td ng-switch-default&gt;{{item}}&lt;/td&gt; 
       &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is dispplaying the all in one column like:</p>
  
  <pre><code>Col1
   170
   1
   130
   ...
   ...
  </code></pre>