'use strict';

var app = angular.module('firstClass');

app.controller('TroopController', ['$scope', 'scoutService', '$window', 'currentAuth',
	function ($scope, scoutService, $window, currentAuth) {
		$scope.test = 'TroopController';

		scoutService.getScouts().then(function (scouts) {
			$scope.troop = scouts;
		});

		$scope.addState = false;

		$scope.showAdd = function () {
			$scope.addState = true;
		};

		$scope.cancelAdd = function () {
			$scope.addState = false;
		};

		$scope.addScout = function (scout) {
			scoutService.createNewScout(scout).then(function (scout) {
				$scope.troop.push(scout);
				$scope.addState = false;
				$scope.newScout = {};
			});
		};

}]);
@@ -113,34 +113,8 @@
 ce',
- '$window', 'currentAuth',
 %0A%09fu
@@ -145,30 +145,8 @@
 vice
-, $window, currentAuth
 ) %7B%0A

remove old auth provider