I'm wanting to append something to a JS Object similar to how you can push to an array. I know that you can't push to an object. So I'm trying to find another solution. It's a funky workaround to accomplish pagination.
$scope.showMore = function() {
$rootScope.resultsObject = parseResults($rootScope.keywordData, $rootScope.limit);
}
That's the line of code where I'm running into problems.
parseResults() is taking my keywordData, and transforming it into columns of giant strings.

When showMore() is called, it is being assigned over resultsObject, thereby removing the first 2 rows of data. I'd rather have it add 2 more rows to the end.
Previous attempts at solving this involved keeping a running array of what was in resultsObject, then I would push more results into that array & try to rerun it through parseResults. This didn't work. It would create additional columns, or dump all the data into one single column.
So now I turn to the JS experts for a better solution.
I've tried working a fiddle up, but it doesn't function correctly. I do have a JSFiddle if you wish to see more of the code. Just remember that it doesn't work.
UPDATE:
Maybe my problem is with my parseResults(). Let me show you what the object actually looks like after being parsed:
resultsObject{
column0: "column1<br>test1"
column1: "column2<br>test2-1"
column2: "column3<br>test3"
column3: "column4<br>test4"
column4: "column5<br>test5"
column5: ""
}
So when I append to resultsObject, I want it to add onto the strings for each value. How is this possible?