Added delete feature for nodes.
This commit is contained in:
parent
39e7af6238
commit
79aadc85c2
20 changed files with 300 additions and 20 deletions
app/scripts
|
@ -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');
|
||||
}
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue