title: How to div hide and show by single click using AngularJS
body: <p>I have two <code>div</code>s. I need to show one at a time.</p>
  
  <pre><code>&lt;div ng-show="viewdiv"&gt;
  &lt;/div&gt;
  &lt;div ng-show="adddiv"&gt;
  &lt;/div&gt;
  
  &lt;a style="" href="#" ng-click="viewdiv=true" &gt;View&lt;/a&gt;
  </code></pre>
  
  <p>How to set <code>adddiv = false</code>? by this same <code>ng-click</code>.</p>
  
  <p><code>ng-click="viewdiv=true,adddiv=false"</code></p>
  
  <p>Is not working.</p>