My current project involves creating an app with the use of ionic item-divider. A key feature is that when a user clicks on the list header, they are redirected to a new view where they can update and delete the selected item. However, I am facing a challenge with updating the selected item as I am unsure how to push both the selected item and its sub-item to the next page for editing and saving. In my controller, I am using the "key" to identify what has been selected, but after that point, I'm struggling to transfer the necessary information to the subsequent page for updates and saves. Below is a link to a Plunker showcasing how my first page appears:
Main View:
<ion-list>
<ion-item ng-model="carBrand" ng-repeat="name in carSelect">
<button ng-click="selectItem(name)">{{name.name}}</button>
<div class="item" ng-repeat="type in name.types">{{type}}</div>
</ion-item>
</ion-list>