{"size": 485, "ext": "js", "max_stars_repo_path": "kahuna/public/js/components/gr-icon/gr-icon.js", "max_stars_repo_name": "domenicosolazzo/grid", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "kahuna/public/js/components/gr-icon/gr-icon.js", "max_issues_repo_name": "domenicosolazzo/grid", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "kahuna/public/js/components/gr-icon/gr-icon.js", "max_forks_repo_name": "domenicosolazzo/grid", "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": 26.9444444444, "max_line_length": 97, "alphanum_fraction": 0.5422680412}
import angular from 'angular';
import './gr-icon.css!';

export var icon = angular.module('grIcon', []);

icon.directive('grIcon', [function() {
    return {
        restrict: 'E',
        transclude: 'replace',
        template: `<i class="gr-icon" ng:class="{'gr-icon--small': grSmall}" ng:transclude></i>`,
        link: function (scope, element, attrs) {
            if (angular.isDefined(attrs.grSmall)) {
                scope.grSmall = true;
            }
        }
    };
}]);
