Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd8f7e commit 99c17caCopy full SHA for 99c17ca
src/ng/directive/ngSwitch.js
@@ -146,6 +146,11 @@ var ngSwitchDirective = ['$animate', function($animate) {
146
147
scope.$watch(watchExpr, function ngSwitchWatchAction(value) {
148
var i, ii;
149
+ for (i = 0, ii = previousElements.length; i < ii; ++i) {
150
+ previousElements[i].remove();
151
+ }
152
+ previousElements.length = 0;
153
+
154
for (i = 0, ii = selectedScopes.length; i < ii; ++i) {
155
var selected = getBlockNodes(selectedElements[i].clone);
156
selectedScopes[i].$destroy();
0 commit comments