Current category of a new bookmark is not set
WillTaylor22 opened this issue · 3 comments
WillTaylor22 commented
Should be:
function createBookmark(bookmark){
bookmark.id = $scope.bookmarks.length;
bookmark.category = currentCategory; // <-----
$scope.bookmarks.push(bookmark);
resetCreateForm();
}
chrislerum commented
Actually the line:
bookmark.category = currentCategory;
should be
bookmark.category = currentCategory.name;
arribajuan commented
The line should be:
bookmark.category = $scope.currentCategory.name;
theianjones commented
The example code should be updated with bookmark.category = $scope.currentCategory.name;
. (line 58 here)