I am looking to transfer the details of an order shown in an ng-repeat to another function within my controller. Currently, it works for the first item in the array. How can I extend this functionality to display any order currently visible on the page?
When the detail button is clicked, the necessary URL is generated. I want this URL to be created for whichever order is being displayed on the detail page at that time. While it currently only works with the first item in the array, how can I make it work for other orders as well?
https://plnkr.co/edit/nASmvcPakxKpRXDsfKnW?p=catalogue
app.js
// Unique content will replace this code block
detail.html
// Unique content will replace this code block
JSON data
// Unique content will replace this code block