title: ngx-pagination in Angular 4. How to get page number?
body: <p>I using Angular 4 and Typescript with library ngx-pagination. I a bit don't understand this library. I have paggination in Java and I want to send page number when page is changed. Numbers of all items came from Java site. I don't know how to handle this problem. I created this code:
  In html:</p>
  
  <pre><code>&lt;tr *ngFor="let story of stories | paginate: { itemsPerPage: this.size, currentPage: this.page, totalItems: this.numberOfElements }" style="text-align: left; word-break: break-all;"&gt;
  
  &lt;pagination-controls (pageChange)="pageChange.emit($event)"&gt;&lt;/pagination-controls&gt;
  </code></pre>
  
  <p>and in TS I created this:</p>
  
  <pre><code>@Output() pageChange: EventEmitter&lt;number&gt; = new EventEmitter();
  </code></pre>
  
  <p>And now how to get page when I change it e.g. when I click on next or Previous?</p>