Why am I getting invalid left hand assignment when using Blaze with Meteor?

StackOverflow https://stackoverflow.com/questions/22898713

  •  28-06-2023
  •  | 
  •  

سؤال

I am trying out Meteor 0.8 version. I created client and server folders and in client folder I have controller.js where I removed the isClient if check. Now I have only

Template.view.modelitem = function() {
    return model.find({}, {sort: {ID: 1}});
};

I keep getting "Invalid left-hand side in assignment" error pointing to 'Template.view.modelitem' definition. Is there something I am doing wrong?

Thanks

هل كانت مفيدة؟

المحلول

Perhaps there's a syntax issue in a preceding line code?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top