I have upgraded project to use angular 1.6.6 and after upgrade my ng-switch 
on="..." elements no longer work althought ng-switch="..." does work.

According to docs it should work with or without the on attribute but am 
concerned that it doesn't work when including the on attribute as it may 
indicate some other issue.

Suggestions appreciated.

<!-- testme set in controller -->

<!-- doesn't work, rendered output includes neither of the two switches -->
<div ng-switch on="testme">
  <div ng-switch-when="1">....</div>
  <div ng-switch-default>....</div>
</div>

<!-- does work as expected -->
<div ng-switch="testme">
  <div ng-switch-when="1">....</div>
  <div ng-switch-default>....</div>

</div>




-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to