title: AngularJS: ng-switch + ng-repeat with button inside of switch statement
body: <p>I'm pretty new to angular and I'm kind of stuck with an issue. I have an ng-repeat that shows items. In the items I have a "show more info" button, which when you click it should cause the a new view to replace the current one (including the show more info button). The new view would then have a "go back" button which will switch back to the original state.</p>
  
  <p>Unfortunately I can't seem to figure out how to get this to work.</p>
  
  <p>This is as far as I've gotten...</p>
  
  <pre><code>&lt;article ng-repeat="item in items" class="items"&gt;
    &lt;div ng-switch on="view"&gt;
      &lt;div ng-switch-default&gt;
        &lt;p&gt;Default State for {{item}}&lt;/p&gt;
        &lt;div class="btn"&gt;More Info
      &lt;/div&gt;
      &lt;div ng-switch-when="info"&gt;
        &lt;p&gt;Info for {{item}}&lt;/p&gt;
        &lt;div class="btn"&gt;Go back&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/article&gt;
  </code></pre>
  
  <p>If someone could help me out here I would appreciate it. Thank you.</p>