Currently, I am using a Restangular collection which is functioning perfectly:
$scope.threads = Restangular.all('thread').getList({ limit: 10, offset: 0 }).$object;
However, my goal is to enhance the functionality by implementing a feature where additional thread models can be loaded when the user triggers it, either through scrolling to the bottom of the list or by clicking a 'Load more' button. Whenever I call .getList() again with a new offset value, it simply replaces the entire collection:
$scope.threads.getList({ limit: 10, offset: 10 });
Is there a solution available that allows the newly returned models to be added or pushed onto the existing array instead of replacing them entirely?