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

POST API integration #596

Open nameisvick opened 6 years ago

nameisvick commented 6 years ago

can any one tell how to perform POST , UPDATE and DELETE API integration in ng2 smart smart table i have done GET API by using this https://github.com/akveo/ng2-smart-table/blob/master/src/app/pages/examples/server/advanced-example-server.component.ts example ... it might be helpful if any one can provide me example snippet like given in above .Thanks in advance .

dizco commented 6 years ago

I think you probably have to hook your component to the CreateConfirm, EditConfirm and DeleteConfirm events from ng2-smart-table. From there, you can call your own service with your http calls. If anyone has a better idea I'd be really happy to know how...