Add colored vertical bar to active item

How to add a vertical bar for active item?
like ionic selected menu:

Thank you!

Thank you @4tron, but I need it in item, not in menu (like unread mail)

Well i think the same principle applies in that you need to assign a dynamic [class] attribute based on the users selected item. I guess you would work in the specific page and not the app.component.ts .

Finally, I found what I needed in linkedin interface :slight_smile:
It’s simply,css border-left:5px solid color :slight_smile:

But what is the logic for the item change?

I just need it for UI to attract user with specific colors (red for emergency … )