akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 878 forks source link

the pager perPage atribute does not update. #1118

Open GzusGo opened 4 years ago

GzusGo commented 4 years ago

https://github.com/akveo/ng2-smart-table/blob/fa801f063b68cbfaa5ae163a55fb5308c44ccca9/projects/ng2-smart-table/src/lib/ng2-smart-table.component.ts#L106

i think is because it was not add it here instead it it repeating the setting for the attribute display two times.

So it fail to update per page setting after first run.

Please Review.

EvgenyProkopovich commented 4 years ago

Must use the method setPaging (this.source.setPaging(1,10,true)) image