I have one issue while using Angular.js ui-router.I added active class for highlight the menu but its not working.I am explaining my code below.
<ul class="nav navbar-nav">
           <li ui-sref-active="active" ><a ui-sref=".profile">College Profile</a></li>
<li ng-class="{active: $state.includes('dashboard.deptmanagement')}"><a ui-sref="dashboard.deptmanagement.stream" >Department Management</a></li>
<li  ui-sref-active="active">
            <li ui-sref-active="active"><a ui-sref="dashboard.user.usermanagement">User Management</a></li>
             <li ui-sref-active="active"><a ui-sref="dashboard.plan.contime">Plan Management</a></li>
          </ul> 
My problem is in Department Management menu from the above code.As this menu has some sub menus if i am adding here ui-sref-active="active" the issue is coming when the sub menu are selecting this menu can not get any active class.The sub menu of this parent menu is given below.
deptmanagement.html:
    <div>
     <tabset>
    <tab ui-sref=".stream" ui-sref-active="active">
      <tab-heading>Add Stream</tab-heading>
    </tab>
    <tab ui-sref=".dept" ui-sref-active="active">
      <tab-heading>Add Department</tab-heading>
    </tab>
    <tab ui-sref=".course" ui-sref-active="active">
      <tab-heading>Add Course</tab-heading>
    </tab>
    <tab ui-sref=".sub" ui-sref-active="active">
      <tab-heading>Add Subject</tab-heading>
    </tab>
  </tabset>
  <div ui-view></div>
</div>
loginroute.js
var Admin=angular.module('Channabasavashwara',['ui.router', '720kb.datepicker','ngMessages','ngCapsLock','ui.bootstrap']);
Admin.config(function($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise('/');
    $stateProvider
     .state('/', {
            url: '/',
            templateUrl: 'dashboardview/login.html',
            controller: 'loginController'
        })
        .state('dashboard', {
            url: '/dashboard',
            templateUrl: 'dashboardview/dashboard.html',
            controller: 'dashboardController'
        })
        .state('dashboard.profile', {
        url: '/profile',
        templateUrl: 'dashboardview/profile.html',
        controller: 'profileController'
    })
    .state('dashboard.deptmanagement', {
        url: '/deptmanagement',
        templateUrl: 'dashboardview/deptmanagement.html',
        controller: 'deptmanagementController'
    })
    .state('dashboard.deptmanagement.stream', {
        url: '/stream',
        templateUrl: 'dashboardview/stream.html',
        controller: 'streamController'
    })
    .state('dashboard.deptmanagement.course', {
        url: '/course',
        templateUrl: 'dashboardview/course.html',
        controller: 'resourcecourseController'
    })
    .state('dashboard.deptmanagement.sub', {
        url: '/subject',
        templateUrl: 'dashboardview/subject.html',
        controller: 'deptsubjectController'
    })
    .state('dashboard.deptmanagement.dept', {
        url: '/dept',
        templateUrl: 'dashboardview/dept.html',
        controller: 'deptController'
    })
})
Here my requirement is when any of above sub-menu will select the main menu remain highlight.Please help me to resolve this issue.

<li ng-class="{'active': $state.includes('dashboard.deptmanagement')}">. It looks like you're using bootstrap so you may also like to keep the menu open for sub menu items so use<li ng-class="{'active open': $state.includes('dashboard.deptmanagement')}">$scope.$state = $state;