Added delete feature for nodes.

This commit is contained in:
baldo 2016-05-16 18:27:03 +02:00
parent 39e7af6238
commit 79aadc85c2
20 changed files with 300 additions and 20 deletions
app/scripts

View file

@ -25,6 +25,11 @@ angular.module('ffffng', [
controller: 'UpdateNodeCtrl',
title: 'Knotendaten ändern'
})
.when('/delete', {
templateUrl: 'views/deleteNodeForm.html',
controller: 'DeleteNodeCtrl',
title: 'Knoten löschen'
})
.otherwise({
redirectTo: '/'
});
@ -39,6 +44,9 @@ angular.module('ffffng', [
},
updateNode: function () {
$location.url('/update');
},
deleteNode: function () {
$location.url('/delete');
}
};
})