Browse Source

Step 3.1: Define tasks collection.

Frederic G. MARAND 9 năm trước cách đây
mục cha
commit
781a40d659
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      simple-todos-react.jsx

+ 3 - 0
simple-todos-react.jsx

@@ -1,3 +1,6 @@
+// Define a collection to hold our tasks.
+Tasks = new Mongo.Collection('tasks');
+
 if (Meteor.isClient) {
   Meteor.startup(function () {
     // Use this branch to render the component after the page is ready.