{"size": 662, "ext": "js", "max_stars_repo_path": "src/javascripts/ng-admin/Crud/button/maListButton.js", "max_stars_repo_name": "proximedia/ng-admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/javascripts/ng-admin/Crud/button/maListButton.js", "max_issues_repo_name": "proximedia/ng-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/javascripts/ng-admin/Crud/button/maListButton.js", "max_forks_repo_name": "proximedia/ng-admin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.8275862069, "max_line_length": 70, "alphanum_fraction": 0.4395770393}
/*global define*/

define(function () {
    'use strict';

    function maListButtonDirective($location) {
        return {
            restrict: 'E',
            scope: {
                'entity': '&',
                'size': '@'
            },
            link: function ($scope) {
                $scope.gotoList = function () {
                    $location.path('/list/' + $scope.entity().name());
                };
            },
            template:
'<md-button class="md-fab" ng-click="gotoList()">' +
    '{{"List" | trans}}' +
'</md-button>'
        };
    }

    maListButtonDirective.$inject = ['$location'];

    return maListButtonDirective;
});
