title: Ng-init if array not yet created
body: <p>I'm trying to build a template for a application and want to display a dynamic list with names. so i got this code to show the list and add/remove rows;</p>
  
  <pre><code>&lt;table ng-init="page.businessRows = []"&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Company&lt;/th&gt;
          &lt;th&gt;Contact&lt;/th&gt;
          &lt;th&gt;Phone&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
      &lt;tr ng-repeat="row in page.businessRows"&gt;
          &lt;td&gt;
              &lt;input type="text" ng-model="row.name" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="text" ng-model="row.contact" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input type="text" ng-model="row.phone" /&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;button ng-click="page.businessRows.splice($index,1)"&gt;
                  Remove
              &lt;/button&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;button class="btn" ng-click="page.businessRows.push({})"&gt;addRow&lt;/button&gt;
  </code></pre>
  
  <p>the thing as that when this template is loaded page.busnessRows will most likely be loaded with rows so i want to change the <code>ng-init</code> to only create the empty array if businessRows is not initialised.</p>
  
  <p>I have tried <code>ng-init="page.businessRows = page.businessRows.length &lt; 1 ? [] : page.businessRows</code> but it did not work. How am i inteded to do conditions in jsangular expressions?</p>
  
  <p>All help appreciated. Thanks in advance</p>