Hello,
I am just getting started with meteor and attempting the todos tutorial. I am able to add to the collection successfully. I am not able to get it to display on the webpage.
I have read the other responses on the forum and checked for syntax errors and haven’t found any. I have even copied and pasted the entire code from the tutorial without success. Has anyone else had this problem and if so how did you fix it? I appreciate your consideration in advance.
used this for insertion -- > db.tasks.insert({ text: "Hello world!", createdAt: new Date() });
used this command to ensure that it was in the db. --> db.tasks.find();
inserted a sort into the js.
Template.body.helpers({
tasks: function () {
return Tasks.find({}, {sort: {createdAt: -1}});
}