{"size": 519, "ext": "js", "max_stars_repo_path": "client/app/list/list.controller.js", "max_stars_repo_name": "amucinom/beer_api", "max_stars_repo_stars_event_min_datetime": "2016-06-01T06:48:06.000Z", "max_stars_repo_stars_event_max_datetime": "2016-06-01T06:48:06.000Z", "max_issues_repo_path": "client/app/list/list.controller.js", "max_issues_repo_name": "amucinom/beer-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/app/list/list.controller.js", "max_forks_repo_name": "amucinom/beer-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.95, "max_line_length": 78, "alphanum_fraction": 0.5433526012}
angular.module('beerApp')
	.controller('listCtrl', ['$scope','$rootScope', 'Beer', '$http', '$location',
		function($scope, $rootScope, Beer, $http, $location) {
			$rootScope.PAGE = "all";
			$scope.beers = Beer.query();
			// $scope.loading = true;

			// $http.get('api/beers')
			// 	.success(function (data) {
			// 		$scope.beers = data;
			// 	})
			// 	.error(function (data) {
			// 		console.log('Error: ', data);
			// 	});

			$scope.showBeer = function(id) {
				$location.url('/beers/' + id);
			};
	}]);
