소스 검색

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.