I am using simple array of numbers like below with ng-repeat:
n = [1,2,3,4,5,6]
The issue is, when I change this array for eg:
n=[1,2,3]
It doesn't fully reload the DOM but instead it just remove the last 3 div elements related to array 4, 5, 6. Is there any way to force the ng-repeat to reload DOM everytime I change the array.
divelement related to first 3 array values.