Get the current index highlighted in my side menu


Hi :slight_smile:

I want to highlight the index of the current page in my side menu.

Someone have an idea?



or apply a different background for each item in the side menu


if you are using ng-repeat you get the current index with $index in your template … maybe you can calculate a rgb color with that index or add classes with the index number at the end like .item_0 …

Greetz, bengtler