text: angular.module('app.controllers')
      .controller('ProjectRemoveController',
          ['$scope','$location','$routeParams','Project',
              function($scope,$location,$routeParams,Project){
                  $scope.project = Project.get({id:$routeParams.id});
  
                  $scope.remove = function (){
  
                      $scope.project.$delete({
                          id: $routeParams.id,
                      }).then(function () {
                          $location.path('/projects');
                      });
                  }
      }]);