Hello
I define session in my project but it doesn’t work and I keep getting this error in console:
session is not defined.
Here is my code:
Template.leaderboard.events({
'click.player': function () {
var playerId = this._id;
Session.set('selectedPlayer', playerId);
}
})
Can you please let me know what is wrong?
thanks
Saeed