Smart-Table icon indicating copy to clipboard operation
Smart-Table copied to clipboard

St table should add pagination by initial state

Open omershelef opened this issue 7 years ago • 0 comments

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.

omershelef avatar Jun 12 '18 11:06 omershelef