title: Toggle view with ng-click and ng-if
body: <p>How do I toggle the view of an article by clicking a <code>&lt;button&gt;</code>?</p>
  
  <pre><code>&lt;button ng-click="/* change view and button label */"&gt;Label&lt;/button&gt;
  &lt;article ng-if="/* */"&gt;
      &lt;h1&gt;{{title}}&lt;/h1&gt;
      &lt;p&gt;{{content}}&lt;/p&gt;
  &lt;/article&gt;
  &lt;article ng-if="/* */"&gt;
      &lt;input type="text" value="{{title}}"&gt;
      &lt;textarea&gt;{{content}}&lt;/content&gt;
  &lt;/article&gt;
  </code></pre>