bulk up the directive activeTab to make it capable of matching either exactly or only on root route. just put active-tab=exact or active-tab=root in the element that can add an active class.