code: function routeObjToRouteName(route, path) {
      var name = route.controllerAs;
  
      var controller = route.controller;
      if (!name && controller) {
        if (angular.isArray(controller)) {
          controller = controller[controller.length - 1];
        }
        name = controller.name;
      }
  
      if (!name) {
        var segments = path.split('/');
        name = segments[segments.length - 1];
      }
  
      if (name) {
        name = name + 'AutoCmp';
      }
  
      return name;
    }
docs: Given a route object, attempts to find a unique directive name.
  
  @param route – route config object passed to $routeProvider.when
  @param path – route configuration path
  @returns {string|name} – a normalized (camelCase) directive name