title: Resetting with angular in an Ionic application
body: <p>I am trying to make a reset button for my cost estimator I am building using Ionic Framework. Now I have a simple reset from when It was a web app but obviously that does not work with Ionic.</p>
  
  <p>I know i have to use Angular and add a controller etc but I am a rookie when it comes to Angular/Ionic and need some help.</p>
  
  <p>Here is my code for current reset</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div&gt;&lt;button class="button button-block button-stable" id="resBtn"  value="Reset"&gt;Reset&lt;/button&gt;&lt;/div&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>//Reset Button//  
  document.forms[0].addEventListener('reset', function() {
  document.getElementById('result').innerHTML = '';
  document.getElementById('container').innerHTML = '';
  document.getElementById('resultPrem').innerHTML = '';
  document.getElementById('containerPrem').innerHTML = '';
  });
  </code></pre>
  
  <p>It is resetting this:</p>
  
  <pre><code> &lt;div id="priceBlock"&gt;
   &lt;h2 class="preText" &gt; Standard = &lt;span id="price"&gt;&lt;/span&gt;&lt;/h2&gt;
   &lt;h3 id="container"&gt;&amp;nbsp&lt;/h3&gt;
   &lt;h2 class="preText"&gt;Express = &lt;span id="pricePrem" &gt;&lt;/span&gt;&lt;/h2&gt;
   &lt;h3 id="containerPrem"&gt;&amp;nbsp&lt;/h3&gt;
  </code></pre>
  
  <p></p>
  
  <p>I know i will have to add something like: ng(refresh) to the button then write a .controller in the app.js but could really do with some advice how to do this.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Cheers</p>
  
  <p>Fred</p>