Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • Thank you for your reply. I have got both list view and edit button working. I have this code pen example codepen.io/ionic/pen/JsHjf . What I am struggling now is after I clicked the edit button, it will bring up a edit form which include each list's detail and a save button. I am struggling with the save button to save the form details. I need some help with the code here to save the details. Thanks Commented Jul 23, 2015 at 17:59
  • Where are you caching your array? In a service? Commented Jul 23, 2015 at 18:09
  • Yes, it is in a sercice, i call my service as WebApi. To get all the array, I have a array in like this var tempData =[] in the service and then to return it, I have a function getAll: function({ return tempData}) something like this Commented Jul 23, 2015 at 23:24
  • Can I do something like this in the savebutton?tempData.splice(index, 1); tempData.splice(index, 0, newUpdateData); and in my service i return something like getUpdateData: function(newUpdateData) { tempData = newUpdateData}) Commented Jul 24, 2015 at 0:00
  • Hi Abhishek Prakash, I have created the plunker here, can you show me how to do it in this plunker? plnkr.co/edit/6xUhmd8SosOjGGZmOTrD?p=preview Commented Jul 24, 2015 at 15:43