1.

How Would You Flag An Item Deleted And Why Is This Useful ?

Answer»

In CASES where you WANT to manage an array of EXISTING DATA for example browser-side, and inform the server of both additions, changes and deletions, you can flag an array item using the ‘destroy’ or ‘destroyAll’ method. This creates a dirty record that is flagged “_destroy” and can be EASILY identified server-side for handling in the data repository.

In cases where you want to manage an array of existing data for example browser-side, and inform the server of both additions, changes and deletions, you can flag an array item using the ‘destroy’ or ‘destroyAll’ method. This creates a dirty record that is flagged “_destroy” and can be easily identified server-side for handling in the data repository.



Discussion

No Comment Found