isActive(route) {
    if (route.state) {
      return this.$state.includes(route.state);
    } else if (route.url) {
      return this.$location.path().includes(route.state);
    }
    this.$log.err('Angular Navbar: Route object must contain a \'state\' or \'url\' key');
    return false;
  }
// Check if a route is active
Check if a route is active
Check if a route is active
isActive(route) {
    if (route.state) {
      return this.$state.includes(route.state);
    } else if (route.url) {
      return this.$location.path().includes(route.state);
    }
    this.$log.err('Angular Navbar: Route object must contain a \'state\' or \'url\' key');
    return false;
  }
isActive ( route ) { if ( route . state ) { return this . $state . includes ( route . state ) ; } else if ( route . url ) { return this . $location . path ( ) . includes ( route . state ) ; } this . $log . err ( 'Angular Navbar: Route object must contain a \'state\' or \'url\' key' ) ; return false ; }
Check if a route is active
Check if a route is active