javascript - Simple #meteor subscribe call giving an error -
server :
meteor.publish('trades', function() { return trades.find(); });
client:
meteor.subscribe("trades");
both:
trades = new meteor.collection('trades');
when run meteor, giving me
typeerror: object # has no method 'subscribe'
any suggestions?
you might have client code running in root directory /
. execute on server , give error. (not sure if this).
Comments
Post a Comment