title: How to implement infinite-scroll pagination in Angular7?
body: <p>I have an object with params i want to send. <br/>
  So ngOnInit works, but what i need onScrollDown add to my params <code>pageNumber + 1</code> everytime i scroll. <br/>
  How can i do that ? </p>
  
  <pre class="lang-js prettyprint-override"><code>questionListParams = {
      pageNumber: 1,
      pageSize: 10,
  };
  
  
  ngOnInit() {
      this.questionsHttpRequests.getQuestions(this.questionListParams).subscribe((response) =&gt; {
          this.listOfQuestions = response;
      });
  }
  
  
  onScrollDown() {
      this.questionsHttpRequests.getQuestions((this.questionListParams)).subscribe((response) =&gt; {
          this.listOfQuestions.push(...response);
      });
  }
  </code></pre>