e="html"
      type="html">
      <pre><code>&lt;div ng-init=&quot;items = []&quot;&gt;&#10;  &lt;button ng-click=&quot;items.push(items.length)&quot;&gt;Add Item&lt;/button&gt;&#10;  &lt;button ng-click=&quot;items = []&quot;&gt;Reset Items&lt;/button&gt;&#10;  &lt;pre&gt;{{ items }}&lt;/pre&gt;&#10;  &lt;test items=&quot;items&quot;&gt;&lt;/test&gt;&#10;&lt;/div&gt;</code></pre>
    </div>
  
    <div class="runnable-example-file" 
      name="app.js"
      language="js"
      type="js">
      <pre><code>