{"size": 441, "ext": "js", "max_stars_repo_path": "public/src/js/app/directives/widgets/card.js", "max_stars_repo_name": "mdanilov/spacebox", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/src/js/app/directives/widgets/card.js", "max_issues_repo_name": "mdanilov/spacebox", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/src/js/app/directives/widgets/card.js", "max_forks_repo_name": "mdanilov/spacebox", "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": 23.2105263158, "max_line_length": 55, "alphanum_fraction": 0.4943310658}
function cardsDirective () {
    return {
        restrict: 'E',
        transclude: true,
        scope: {
            user: '='
        },
        templateUrl: 'src/js/app/templates/cards.html',
        link: function (scope, element, attrs) {
            scope.$watch('user', function () {
                scope.carouselIndex = 0;
            });
        }
    };
}

angular.module('spacebox').directive('spCards',
    [cardsDirective]);
