Get the current index highlighted in my side menu


#1

Hi :slight_smile:

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

Someone have an idea?

Thanks


#2

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


#3

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