Like and Dislike options

Can any body help me for how implement like and Dislike option using Firebase

1 Like

What you are trying for ? Can you elaborate more?

Want to add like count and dislike count to firebase?

Initial global count to 0
If like Button clicked set g.count to get count +1

If dislike button clicked
If get count is not zero set count to get count -1

Or set dislike count to one.

Finally send the count value to firebase

Is this what you are looking for ?

Ok this is something interesting do you want like and dislike for one post or multiple Posts :thinking::thinking:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.