Skip to content

Commit

Permalink
Fix $subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandesigner committed Jun 19, 2018
1 parent 374a967 commit cc611c2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
documents: []
}),
meteor: {
subscribe: {
'documents': [],
$subscribe: {
'documents.owner': [],
},
documents() {
return Documents.find({})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
}
},
meteor: {
subscribe: {
'documents': [],
$subscribe: {
'documents.owner': [],
},
users() {
return Meteor.users.find({})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
}),
meteor: {
subscribe: {
$subscribe: {
'users': [],
},
users() {
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/src/imports/ui/pages/Admin/Users/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
users: []
}),
meteor: {
subscribe: {
$subscribe: {
'users': [],
},
users() {
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/src/imports/ui/pages/Admin/Users/UsersEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}
},
meteor: {
subscribe: {
$subscribe: {
'users': [],
},
users() {
Expand Down
3 changes: 2 additions & 1 deletion boilerplate/src/imports/ui/pages/Documents/Documents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</header>
<div class="documents-item" v-for="document in documents" :key="document._id" @click="handleDocumentDetails(document._id)">
<h2>{{ document.title }}</h2>
<strong>{{ document.owner }}</strong>
<p>{{ document.body }}</p>
</div>
</div>
Expand All @@ -23,7 +24,7 @@
},
},
meteor: {
subscribe: {
$subscribe: {
'documents': [],
},
documents() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<h2>Document Details</h2>
</header>
<h4>{{ documents[0].title }}</h4>
<strong>{{ documents[0].owner }}</strong>
<p>{{ documents[0].body }}</p>
</div>
</template>
Expand All @@ -19,7 +20,7 @@
documents: []
}),
meteor: {
subscribe: {
$subscribe: {
'documents': [],
},
users() {
Expand Down

0 comments on commit cc611c2

Please sign in to comment.