(function(angular) {
	'use strict';
	
	var app = angular.module('bugminerApp', ['ngResource', 'ngRoute']);
	
	app.config(['$routeProvider', function($routeProvider) {
		$routeProvider
			.when('/', {
				templateUrl: 'partials/projects/index.html',
				controller: 'ProjectsCtrl'
			})
			.when('/projects/:name/bugs', {
				templateUrl: 'partials/projects/bugs.html',
				controller: 'ProjectBugsCtrl'
			});
	}]);
	
	app.factory('Project', function($resource) {
		  return $resource("/api/projects/:name");
	});
	
	app.factory('Bug', function($resource) {
		  return $resource("/api/projects/:name/bugs");
	});
	
	app.controller('ProjectsCtrl', function($scope, Project) {
		Project.query(function(data) {
			$scope.projects = data;
			console.log(data);
		});
	});
	
	app.controller('ProjectBugsCtrl', function($scope, Bug) {
		Bug.query({name: 'Bugminer'}, function(data) {
			$scope.bugs = data;
			console.log(data);
		});
	});

})(angular);

(function(angular) {
	'use strict';
	
	var app = angular.module('bugminerApp', ['ngResource', 'ngRoute']);
	
	app.config(['$routeProvider', function($routeProvider) {
		$routeProvider
			.when('/', {
				templateUrl: 'partials/projects/index.html',
				controller: 'ProjectsCtrl'
			})
			.when('/projects/:name/bugs', {
				templateUrl: 'partials/projects/bugs.html',
				controller: 'ProjectBugsCtrl'
			});
	}]);
	
	app.factory('Project', function($resource) {
		  return $resource("/api/projects/:name");
	});
	
	app.factory('Bug', function($resource) {
		  return $resource("/api/projects/:name/bugs");
	});
	
	app.controller('ProjectsCtrl', function($scope, Project) {
		Project.query(function(data) {
			$scope.projects = data;
			console.log(data);
		});
	});
	
	app.controller('ProjectBugsCtrl', function($scope, $routeParams, Bug) {
		Bug.query({name: $routeParams.name}, function(data) {
			$scope.bugs = data;
			console.log(data);
		});
	});

})(angular);

Use $routeParams for retrieving project name
Use $routeParams for retrieving project name
