{"size": 652, "ext": "js", "max_stars_repo_path": "src/app/projects/projects.route.js", "max_stars_repo_name": "jgeewax/phoenix", "max_stars_repo_stars_event_min_datetime": "2015-10-06T19:03:56.000Z", "max_stars_repo_stars_event_max_datetime": "2017-07-07T10:57:12.000Z", "max_issues_repo_path": "src/app/projects/projects.route.js", "max_issues_repo_name": "jgeewax/phoenix", "max_issues_repo_issues_event_min_datetime": "2015-10-06T19:27:47.000Z", "max_issues_repo_issues_event_max_datetime": "2015-11-18T00:05:53.000Z", "max_forks_repo_path": "src/app/projects/projects.route.js", "max_forks_repo_name": "jgeewax/phoenix", "max_forks_repo_forks_event_min_datetime": "2015-10-06T23:57:28.000Z", "max_forks_repo_forks_event_max_datetime": "2017-07-07T10:57:13.000Z"}
{"max_stars_count": 4, "max_issues_count": 22, "max_forks_count": 5, "avg_line_length": 21.0322580645, "max_line_length": 50, "alphanum_fraction": 0.5797546012}
(function() {
  'use strict';

  angular
    .module('gcloudConsole')
    .config(projectsRoutes);

  /** @ngInject */
  function projectsRoutes($stateProvider) {
    $stateProvider
      .state('projects', {
        url: '/projects',
        templateUrl: 'app/projects/projects.html',
        controller: 'ProjectsCtrl',
        controllerAs: 'projects',
        resolve: { $projects: getProjects }
      });
  }

  /** @ngInject */
  function getProjects($Projects, resource) {
    return resource
      .getProjectList()
      .then(function(projects) {
        /* jshint newcap:false */
        return new $Projects(projects);
      });
  }

})();
