Ng-repeat still displays deleted items when used with ng-animate in angular 1.4.0-rc2

When I tried to port my application to Angular 1.4.0-rc2 (release candidate), I got into a problem: when I load ngAnimateas a dependency of my application, the directive ngRepeatstops deleting deleted elements from the HTML DOM. The problem does not appear when I do not load ngAnimateor when I use Angular 1.3.x.

Plunker App Demonstrates Problem

Is this a bug in 1.4.0-rc2 or am I doing something wrong? I looked at breaking changes 1.4, but that did not help me solve this problem.

+4
source share
1 answer

, , angularjs: https://groups.google.com/forum/#!topic/angular/ZSUB17o4jd0.

, Sander Elias.

. , , , , / . :

<div ng-repeat="s in vm.wrapper.strings track by $index">
    <ng-form name="blahForm">
        <select ng-model="vm.wrapper.strings[$index]" ng-options="obj.value as obj.name for obj in vm.options" name="xxx" required>
            <option>Wybierz</option>
        </select>
    </ng-form>
</div>

ngForm , , .

+1

Source: https://habr.com/ru/post/1589472/


All Articles