text: module.exports = ['$scope', '$location', '$http', '$rootScope', 'notie', function($scope, $location, $http, $rootScope, notie) {
          $rootScope.nav = 'signup';
  
          if ($rootScope.user) {
              $location.path('/');
          }
  
          $scope.signup = function () {
              $http.post('/api/registrants', {
                  name: $scope.name,
                  password: $scope.password
              }).success(function() {
                  $location.path('/');
                  notie.alert(1, 'You have been registered.', 3);
              }).error($rootScope.$error);
          };
  }];
  