On a ionic/Angularjs project, When one item is clicked in a list in a state, how do I set a rule to pull data on the next view thanks to the itemID of the item clicked in this list ?
The code is too long to paste here, but you 'll get the idea in the jsfiddle
I want from clicking on items in gray color in the list, update informatino of the detaild view of that item (in blue background).
HTML of list view :
<h1 class="featured_in_mag_name">Dishes in that category:</h1>
<ion-item ng-repeat="dish in dishList | selectedDishType:selection ">
<article class="item_frame">
<h4 class="item_name_english">{{dish.nameEnglish}}</h4>
<p class="item_name_local_language">{{dish.nameLocal}}</p>
</article>
<!--main article frame 1 -->
</ion-item>
</ion-list>
HTML of detailed view
<ion-view view-title="Dish " >
<h1 class="featured_in_mag_name">Selected dish - detailed view: </h1>
<ion-content>
<article class="detailed_view">
<h1 class="item_name_english">{{dish.nameEnglish}}</h1>
<p class="item_name_local_language">{{dish.nameLocal}}</p>
<p class="item_name_local_language">{{dish.nameLocal}}</p>
<p class="item_name_local_language">{{dish.description}}</p>
<p class="item_name_local_language">{{dish.region}}</p>
<p class="item_name_local_language">{{dish.country}}</p>
</article>
</ion-content>
</ion-view>