title: how to implement pagination for a simple html table in angular2
body: <p>i have an table, i need to implement pagination.How can i do in angular2. i just install ng2-pagination for that. but its not working for me. am following <a href="https://github.com/michaelbromley/ng2-pagination" rel="nofollow noreferrer">https://github.com/michaelbromley/ng2-pagination</a> 
  my code files are:</p>
  
  <p>module.ts</p>
  
  <pre><code>import { PaginatorModule } from 'primeng/primeng';
  
  @NgModule({
   imports: [
   PaginatorModule
   ],
   exports: [
      PaginatorModule
   ]
  })
  </code></pre>
  
  <p>component.html</p>
  
  <pre><code>&lt;p-paginator [rows]="3" [totalRecords]="totalResults" styleClass="ui-paginator-bottom; ui-paginator-pages"&gt;&lt;/p-paginator&gt;
  </code></pre>
  
  <p>But it looking like this:
  <a href="https://i.stack.imgur.com/IagUZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IagUZ.png" alt="Pagination"></a></p>
  
  <p>how can i implement and improve actual pagination to this. if i click in 2 i need to go to second page. am new to angular. How should i implement pagination? Any help will really appreciable very helpfull.</p>