-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ng-switch should allow non ng-when children #1074
Comments
Note as well that there are multiple when statements with the same value. This is also desired behavior. |
I would like both non-ng-switch-when children and multiple ng-switch-when with the same value also. |
Added the ability to handle multiple matches on ng:switch-when and ng:switch-default Closes angular#1074
Hi , I guess the issue still exists. Please refer http://plnkr.co/edit/4zTsEQKiYGOiAcPYo8PJ Note that the element "some other text is static but the dynamically added elements are inserted after the static element (some other text). |
Looking at the tests in e394ec3, I don't think that commit fixed this problem. |
The patch adds the directive ng-switch-always. Elements inside a ng-switch marked with this new directive, show up always regardless if there is a case match or matches the default. The added benefit is that the element show up at the position declared |
Preserve the order of the elements that are not part of a case nor default in a ng-switch directive Closes angular#1074
Preserve the order of the elements that are not part of a case nor default in a ng-switch directive Closes angular#1074
Currently
ng-switch
does justappend()
, so the dynamically added elements are inserted after the static ones (first, last).The text was updated successfully, but these errors were encountered: