'use strict';

(function() {
	var app = angular.module('idleTown');

	app.controller('ResourceController', ['resourceService', function(resourceService) {
		this.resources = resourceService.resources;
	}]);
})();
'use strict';

(function() {
	var app = angular.module('idleTown');

	app.controller('ResourceController', ['resourceService', function(resourceService) {
		this.resources = resourceService.resources;

		this.giveResource = function(resource, amt) {
			resourceService.addResource(resourceService.indexMap[resource.name], amt);
		}
	}]);
})();
Add resource giving button for debugging