瀏覽代碼

Step 3.1: Define tasks collection.

Frederic G. MARAND 9 年之前
父節點
當前提交
781a40d659
共有 1 個文件被更改,包括 3 次插入0 次删除
  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.