angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Is there a workaround for the issues-2151 in version 1.1.4

Open theluckin opened this issue 12 years ago • 1 comments

Hi, Is there a workaround for the issue 2151 i.e. templateUrl with ng-repeat issue, for version 1.1.4? Though pushing object to model is updating the UI but removing object with array.splice is always deleting the last element in the DOM but model has correct data. If i trigger another event manually to update the table data again with push, it renders the table correctly.

PS: Its not feasible for me to upgrade to 1.2.1 where the issue seems to be resolved.

theluckin avatar Feb 28 '14 22:02 theluckin

1.1.4 was an unstable version and things have changed quite a bit since then.

if as you say an additional $digest helps to resolve the problem, then you could schedule an empty $timeout after each time you change the model in the repeater.

// change model here
// then
$timeout(function(){})

IgorMinar avatar Mar 01 '14 00:03 IgorMinar