{"size": 537, "ext": "js", "max_stars_repo_path": "app/components/player-list/player-list.controller.js", "max_stars_repo_name": "powderkeglabs/practice-partners", "max_stars_repo_stars_event_min_datetime": "2015-10-31T13:56:11.000Z", "max_stars_repo_stars_event_max_datetime": "2015-11-01T20:04:29.000Z", "max_issues_repo_path": "app/components/player-list/player-list.controller.js", "max_issues_repo_name": "powderkeglabs/practice-partners", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/components/player-list/player-list.controller.js", "max_forks_repo_name": "powderkeglabs/practice-partners", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.375, "max_line_length": 94, "alphanum_fraction": 0.5847299814}
(function(){

  'use strict';

  angular.module('partnerApp')

    .controller('PlayerListCtrl', ['PlayerService', '$state', function(PlayerService, $state){

      var ctrl = this;
      ctrl.players = PlayerService.getPlayers(null, 'online');
      ctrl.filterPlayers = function(race){
        $state.go('race', { race: race });
        ctrl.players = PlayerService.getPlayers(race, 'online');
      };

      //Materialize tabs initializtion
      $(document).ready(function(){
        $('ul.tabs').tabs();
      });

    }]);

})();
