I have a JSON file that contains data which I am able to display using AngularJS. The information is presented in rows with checkboxes and a Delete button. My goal is to remove the data from both the display and the JSON file. To delete, simply click on the checkbox next to the item you wish to delete, then click the Delete button. Here is my Plnkr link for reference:
http://plnkr.co/edit/A07XJk1RQNmhSnLFqLxH?p=preview
api.json is the name of the JSON file.
This is how the JSON file is structured:
{
"1": {
"venture": "XYZ Informatics",
"member": [
{
"name": "abcd",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="076665646347606a666e6b2964686a">[email protected]</a>"
}
],
"message": "This is a good day",
"isclicked": false
},
"2": {
"venture": "BBC Informatics",
"member": [
{
"name": "xyz",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="176f6e6d57707a767e7e79807278">[email protected]</a>"
}
],
"message": "This is a bad day",
"isclicked": true
}
}