Smart-Table
Smart-Table copied to clipboard
St table should add pagination by initial state
The problem: in case we want to paginate the data in the smart table, st-pagination must be loaded and call the slice function in the stTableController. because st-pagination depends on templateUrl to run its link function it's sometimes may take time for it to load, in this case the smart table can be loaded into the DOM before the link function of stPagination had time to run. loading all smart table into the DOM without any pagination will cause the browser to stuck in case there is too much data
by initial the pagination number to itemsByPage value, we make sure the data will be loaded always with initial pagination state.