The previously used angularjs was buggy when the source of an ng-repeater was an array and the array was cleared and new elements where added to it after.