title: ng-switch and ng-repeat on the same element interfearing
body: <p>I encountered behaviour in Angular I did not expect and the purpose of this post is to find out whether this is a bug or intended and possibly an explanation why it is intended.</p>
  
  <p>First see this Plunkr: <a href="http://plnkr.co/edit/CB7k9r?p=preview" rel="noreferrer">http://plnkr.co/edit/CB7k9r?p=preview</a> . In the example I created an array called array with three object entries. Further I created a ng-switch based on the content of an input field (called toggle). When the value of toggle is 1 it should print all names of the objects in the array prefixed with "1" and otherwise prefixed with "other".</p>
  
  <p>This does not work as intended an it shows an error: </p>
  
  <pre><code>Error: Argument '?' is required at assertArg 
  </code></pre>
  
  <p>However the same example rewritten (<a href="http://plnkr.co/edit/68Mfux?p=preview" rel="noreferrer">http://plnkr.co/edit/68Mfux?p=preview</a> ) with an extra div around the list, the ng-switch moved to this div and the ng-switch-when moved from the li to the ul (separating the ng-repeat and the ng-switch-when) does work as intended.</p>
  
  <p>Could someone explain why this is? </p>