title: AngularJS, bind scope of a switch-case?
body: <p>To get a grip on AngularJS I decided to play around with one of the examples, specifically, simply adding a "complete" screen to the Todo-example, when the user has entered 5 todos it uses a switch-case to switch to another div. Code is available here <a href="http://jsfiddle.net/FWCHU/1/">http://jsfiddle.net/FWCHU/1/</a> if it's of any use.</p>
  
  <p>However, it appears that each switch-case gets its own scope ($scope.todoText is not available), however it can be accessed using "this" from within addTodo() in this case. So far so good, but say I want to access todoText (which is inside the switch-case) outside of the switch-case, how would I go about doing that? Can I bind the switch-case scope to the model perhaps, is it accessible in some other way or should this be solved in some other way?</p>
  
  <p>PS. I'm <strong>not</strong> trying to find ANY solution to the code above, I'm pretty sure I know how to solve it without using switch-cases, I want to understand how scopes work in this case!</p>