When pushing an array\'s contents to another array I get
\"Uncaught TypeError: Cannot read property \'push\' of undefined\" error in this snippet.
I fixed in the below way with typescript
pageNumbers: number[] = [];
than populate it
for (let i = 1; i < 201; i++) { this.pageNumbers.push(i); }