DEV Community

Discussion on: Angular material table remove element by index with paginator

Collapse
 
matoni1 profile image
Antonio Ribeiro

Great advice. Nice to find a dev encountering this issue and finding a way around it. My solution was a bit different. All i did was add an index value into the dataSource JS object. In other words a new Object key and value for every entry in the JS object. Then simply reference the entry in the material table by that value

Collapse
 
pantpapasavvas profile image
Pantelis Papasavvas

Thanks for your feedback Antonio.
I took benefit from paginator to solve my problem.
I like your solution as it is more simple than mine.