   $scope.saveUser = (user) ->
     User.save user, () ->
       $scope.getData()
-    
+
   $scope.getUsers = () ->
     $scope.users = User.query()
 

, ['$scope', '$location', 'User', 'Auth'
, ($scope, $location, User, Auth) ->

  $scope.newUser = User.create()
  $scope.currentView = 'list'

  $scope.getData = () ->

    else
      $location.path '/login'

]
