In my AngularJS app I have two lists created using ng-repeat.
List one lists all the food categories like:
Meat, Fruits, Vegetables, Poultry, Dry Fruits ... etc.
List two lists all the foods like:
Eggs, Chicken, Oranges, Apple, Banana ... etc.
List number two lists food items in groups like, all the Meat items first and then all Fruits.
I have created both of these lists using div and ng-repeat, in one page.
Each element in the both of the lists has unique ID.
What I want to achieve:
When user select one of the food category from list one, then list two should scroll to that particular category related food items.
For example if user selects Fruits in list one then, list two should scroll to Oranges item.
UPDATE
Also is it possible to select item in list one when user scrolls to specific group? For example if user scrolls to Chicken in list two then in list one Meat should be selected.