title: Remove element from html AngularJS
body: <p>I'm trying to show or hide a div using ng-if directive in AngularJS.
  It works but it still appears in the html source code.</p>
  
  <p>How can I completely remove the div from the html?
  This is how I'm doing it:</p>
  
  <pre><code>&lt;div ng-if="user != null &amp;&amp; user != 'Error'"&gt;CONTENT&lt;/div&gt;
  </code></pre>
  
  <p>Thanks!</p>