app.controller('repo', ['$scope', '$stateParams', '$http', 'config', '$window', function($scope, $stateParams, $http, config, $window) {
	$scope.owner = $stateParams.owner
	$scope.repo = $stateParams.repo

	$scope.api_failed = function() {
		return $window.failed_api_calls > 0;
	}
}])
