title: How to implement ng-bootstrap 4 table sorting, pagination and filtering
body: <p>I am going through the <a href="https://ng-bootstrap.github.io/#/components/table/overview" rel="nofollow noreferrer">official documentation of ng-bootstrap</a>, in some of their official examples, the code is not working. In particular I am talking about <a href="https://ng-bootstrap.github.io/#/components/table/examples#sortable" rel="nofollow noreferrer">this</a> and <a href="https://ng-bootstrap.github.io/#/components/table/examples#complete" rel="nofollow noreferrer">this</a> examples, when you open them in stackblitz. This makes it hard for me to understand how the code works so that I can implement it my way.</p>
  
  <p>I have seen <a href="https://stackoverflow.com/questions/26361322/ng-table-pagination-sorting-and-filter-not-working">this question</a> but the answer is outdated as it is for angularjs.</p>
  
  <p>So now my questions is: </p>
  
  <ol>
  <li>How can I implement ng-bootstrap 4 table sorting, pagination and filtering as shown <a href="https://ng-bootstrap.github.io/#/components/table/examples#complete" rel="nofollow noreferrer">here</a>? What is the issue with the given code why is it not working?</li>
  </ol>
  
  <p>A working example would be great as it would help me see and understand how the code works. Thank you.</p>