Sidemenu border-left color

How do I detect a current rootpage in ionic 2? I required this because I want to set a border-left color for a sidemenu button based on which page he/she is in. Now the issue is, If I traverse from one page from the sidemenu and end up landing on some different page , the color is set to the previous one only. Can someone help me with this logic?