0

I have a glitch with angular's ng-repeat directive. My HTML is as follow:

<ul ng-show="predictions" id="search-place-predictions">
  <li ng-repeat="prediction in predictions">{{prediction.description}}</li>
</ul>

and $scope.predictions is an Array in my controller, that takes between 0 and 5 items. However, at each update of this array, I have a visual glitch of around .2 second where the PREVIOUS <li> are still displayed, and the <li> from the new version of the array are also displayed on top of it. No amounts of $apply() have been able to solve this.

EDIT: I have a transition: border-top .2s ease-out; style applied to my list items. When commented out, the glitch disappears.

Cystack
  • 3,301
  • 5
  • 35
  • 33