{"size": 728, "ext": "js", "max_stars_repo_path": "visualization/app/TestVille/ui/common/dropdown/dropdownController.js", "max_stars_repo_name": "MaibornWolff/TestVille", "max_stars_repo_stars_event_min_datetime": "2018-03-30T11:07:30.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-09T23:44:06.000Z", "max_issues_repo_path": "visualization/app/TestVille/ui/common/dropdown/dropdownController.js", "max_issues_repo_name": "MaibornWolff/TestVille", "max_issues_repo_issues_event_min_datetime": "2018-04-04T19:08:07.000Z", "max_issues_repo_issues_event_max_datetime": "2020-07-28T11:38:03.000Z", "max_forks_repo_path": "visualization/app/TestVille/ui/common/dropdown/dropdownController.js", "max_forks_repo_name": "MaibornWolff/TestVille", "max_forks_repo_forks_event_min_datetime": "2018-04-04T18:54:27.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-10T07:58:54.000Z"}
{"max_stars_count": 15, "max_issues_count": 4, "max_forks_count": 2, "avg_line_length": 19.6756756757, "max_line_length": 63, "alphanum_fraction": 0.5961538462}
"use strict";
/**
 * Controller for the DropdownDirective
 */
class DropdownController{

    /* @ngInject */
    /**
     *
     * @param {TooltipService} tooltipService
     * @param {Scope} $rootScope
     * @param {Scope} $scope
     */
    constructor(tooltipService, $rootScope, $scope) {
        this.tooltipService = tooltipService;

        $rootScope.$on("tooltips-changed", (event,data) => {
            $scope.$apply();
        });

    }

    /**
     * returns the tooltip description related to the given key
     * @param {String} key
     * @returns {String} description
     */
    getTooltipTextByKey(key) {
        return this.tooltipService.getTooltipTextByKey(key);
    }

}

export {DropdownController};


