akveo / akveo/ng2-smart-table

Bind question

未关闭
#507 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

Why does the grid does not bind new entries after I delete a row?

Also, when we delete a row, the delete is not reflected in the object array. Is this expected?

I added {{data | json}} in the basic-example-data.component's template to inspect the changes and I noticed that it does not bind new rows after I delete a row.

To reproduce this, add a new record through 'Add New' action. Delete any record clicking on delete. Add another record through 'Add new' again. The new value will not be included.

Edit
I added a plunker showing what's happening when we delete a row and/or try to add new row after deleting a row. [**Plunker**](https://plnkr.co/edit/2LEJiUDdvG2l2Svvp0gk?p=preview)

Regards

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。