append a list in typescript code example
Example 1: how to add an element to a Typescript array
your_array.push(the_element);
Example 2: angular append array to another
this.results = [ ...this.results, ...data.results];
your_array.push(the_element);
this.results = [ ...this.results, ...data.results];