meteor - waitOn blocking template from loading -


when start meteor server , navigate default route, see apploading template inside mainlayout (as expected), main template never loads after subscription loaded.

  • i've got simple routes.js file (below)
  • autopublish still turned on.
  • i seeded db , can confirm in browser console subscription there, , there items in services collection.

probably missing simple here.

/*=================== configure defaults ====================*/  router.configure({   layouttemplate:   'mainlayout',   loadingtemplate:  'apploading',   notfoundtemplate: 'notfound' });  /*=================== configure routes ====================*/  router.route('/', {            // default route   name: 'main',   template: 'main',   waiton: function() {     return meteor.subscribe('services');   },   data: function() {     return services.find();   } }); 

i'm guessing not have publication? client waiting "ready" notification publication , not receiving it, hence nothing loaded. remove autopublish , start writing publications.

the autopublish package literally copies server db client. can't subscribe if not have publications.


Comments

Popular posts from this blog

rewrite asp to php based on asp query -

android - questions about switching from C2DM to GCM -

visual studio 2010 - Error on RDLC Expression -