I have a little top piece of a page i'm working on that is separated from the rest of the main program. The point of the section is to display different things based on the state of a value in the controller. I've found that ng-switch seems to bugger with my ng-models, but ng-show/ng-hide does not. Is this by design or is there a bug.
Here are the fiddles:
http://jsfiddle.net/tAEMp/10/ - This is with ng-switch. If you enter a value in the form and click the Update button, I get 'undefined' in the console.
While the fiddle only shows 2 states, I'd like to have 4-5 states, so ng-switch seems more reasonable. It seems like the alternate would be to have several scope variables and a bunch of ng-shows related to them (messy imho).