Skip to content

anilmaurya/ember-favourite-heart

Repository files navigation

ember-favourite-heart ❤️Build Status npm version Codacy Badge

This is Ember cli addon which provide twitter like favourite heart component.

Installation

  • ember install ember-favourite-heart

Usage

This addon provides an ember-inplace-edit component.

{{ember-favourite-heart liked=model.liked likeCount=model.likes_count likeItem=model action="toggleLike"}}
  

Properties

Property Description
liked true/false
likeCount No. of likes
disabled Disable like/unlike (default: false)

Actions

Action Description
action Action to be called after clicking on heart
likeItem Optional parameter passed with action

Credits

http://www.9lessons.info/2015/11/twitter-heart-button-css3-animation.html

About

Ember cli component for twitter like favourite heart button ❤️

Resources

License

Stars

Watchers

Forks

Packages

No packages published