title: How to clear $localStorage
body: <p>In Angular I tried:</p>
  
  <pre><code>$localStorage.clear();
  </code></pre>
  
  <p>It got the error:</p>
  
  <blockquote>
    <p>$localStorage.clear is not a function</p>
  </blockquote>
  
  <p>What is the correct calling convention to wipe out <code>$localStorage</code>?</p>