I am trying to write a small angular application for an online store.
Now in the application, one ng-repeat directive passes through all the goods in the category, and when the user presses the buy button, the product index - $index sent to the controller, and the fact of purchase is recorded in the model.
I want the application to have the possibility of splitting the goods into categories with the possibility of sending the category number and product number in the category to the controller, but I don’t know if it is possible to get both indices in different variables in an angular .
I would be grateful for your tips.