We are going to complete the bookmark management functionality by showing how to delete a bookmark from the bookmarks collection.
The source for this lesson can be found on Github. Tags correspond to the lesson.
Hi,
Can we use the below code to delete the item from the list?
bookmarks.splice($index,1) on dom class "close".
Is it not correct way to go on production??
Thanks MG
This is exactly what you should do
Instead of: function functionName(parameter) { // ... }; $scope.functionName = functionName;
You can just declare it directly like this $scope.functionName = function (parameter) { // ... };
I find it more elegant.