I am implementing notifications on my webapp using pub/sub. I am also using
publish-counts package to get the unread notifications count. I have created a meteorpad sample for review here http://meteorpad.com/pad/dZiD7sq8XkwBGg6Jg/Leaderboard .
I am now trying to have an unread count animate whenever a new notification arrives. I have tried implementing it using
Notifications collection. However, it is adding animation class even at the very first loading of subscription. I unsuccessfully tried using
Meteor.defer to defer the initialization variable to
Can anyone please advise, how can I achieve an animation only when there is a brand new notification in collection?