Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current category of a new bookmark is not set #3

Closed
WillTaylor22 opened this issue Oct 21, 2014 · 3 comments
Closed

Current category of a new bookmark is not set #3

WillTaylor22 opened this issue Oct 21, 2014 · 3 comments

Comments

@WillTaylor22
Copy link

Should be:
function createBookmark(bookmark){
bookmark.id = $scope.bookmarks.length;
bookmark.category = currentCategory; // <-----
$scope.bookmarks.push(bookmark);

    resetCreateForm();
  }
@chrislerum
Copy link

Actually the line:
bookmark.category = currentCategory;
should be
bookmark.category = currentCategory.name;

@arribajuan
Copy link

The line should be:

bookmark.category = $scope.currentCategory.name;

@theianjones
Copy link
Contributor

theianjones commented Jul 5, 2016

The example code should be updated with bookmark.category = $scope.currentCategory.name;. (line 58 here)

Lavioli pushed a commit to Lavioli/eggly-egghead-angularjs-from-scratch that referenced this issue Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants