(function() {
    "use strict";

    angular
        .module('VinculacionApp')
        .controller('ProjectsController', ProjectsController);

    ProjectsController.$inject = ['projects', 'toaster'];

    function ProjectsController (projects, toaster) {
        var vm = this;
        
        vm.projects = [];
        
        projects.getProjects( 
            function(response) {
                console.log(response);
                for(var obj in response.data) {
                    vm.projects.push(response.data[obj])
                }
            }, 
            function(response) {
                toaster.pop(
                    {
                        type: 'error', 
                        title: 'Error', 
                        body: 'No se ha podido obtener los proyectos deseados.'
                    }
                );
            }
        );
    }

})();
@@ -307,16 +307,836 @@
 s = %5B%5D;%0A
+        vm.removeProjectClicked = removeProjectClicked;%0A%0A        function removeProjectClicked (project, index) %7B%0A            if (confirm(%22Esta seguro de borrar el proyecto: %22 + %0A                project.Name + %22?%22))%0A            removeProject(project, index);%0A        %7D%0A%0A        function removeProject (project, index) %7B%0A            vm.projects.splice(index, 1);%0A%0A            projects.deleteProject(1000, %0A                removeProjectSucces, removeProjectFail);%0A        %7D%0A%0A        function removeProjectSucces () %7B%0A            console.log(%22Success%22);%0A        %7D%0A%0A        function removeProjectFail () %7B%0A            toaster.pop(%0A                %7B%0A                    type: 'error', %0A                    title: 'Error', %0A                    body: 'No se pudo borrar el proyecto.'%0A                %7D%0A            );%0A        %7D%0A
         

Implement remove project functions