Added like and bookmark button and handled their behavior.
Proposed Changes
The child component LikeButton.vue emit an event labeled like:isClicked.
The parent component CardAPI.vue will handle this event and check if like button is already clicked to understand if the like counter value have to be incremented or not.
Preview
Checklist
[x] My submission is formatted according to the guidelines in the contributing guide
[ ] My addition is ordered alphabetically
[ ] My submission has a useful description
[ ] Code follows the established CODE_OF_CONDUCT guidelines.
[ ] Code has been tested thoroughly and passes all tests.
[ ] All commit messages are descriptive and follow the established commit message format.
[ ] Pull request title follows the established pull request title format.
[ ] Pull request description clearly describes the changes included in the pull request.
[ ] The description does not have more than 100 characters
[ ] Each table column is padded with one space on either side
[ ] I have searched the repository for any relevant issues or pull requests
[ ] Any category I am creating has the minimum requirement of 3 items
Description
Added like and bookmark button and handled their behavior.
Proposed Changes
The child component
LikeButton.vue
emit an event labeledlike:isClicked
. The parent componentCardAPI.vue
will handle this event and check if like button is already clicked to understand if the like counter value have to be incremented or not.Preview
Checklist