What am i doing wrong?
I'm building the leaderboard app from meteortips.com Trying to build a collection in the database this is my code:
new Meteor.Collection('players');
PlayersList = new Meteor.Collection('players');
if(Meteor.isClient) {
console.log("Hello Client");
}
if(Meteor.isServer) {
console.log("Hello Server");
}
Trying out PlayersList on the js console gives me an error:
PlayersList
ReferenceError: PlayersList is not defined
message: "PlayersList is not defined"
stack: (...) stack: function () { [native code] } set stack: function () { [native code] } proto: Error