File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -180,43 +180,22 @@ new Vue({
180180 meteor: {
181181 // Subscriptions
182182 subscribe: {
183- // We subscribe to the 'threads' publication
184183 ' threads' : []
185184 },
186185 // Threads list
187- // This will update the 'threads' array property on the Vue instance
188- // that we set in the data() hook earlier
189- // You can use a function directly if you don't need
190- // parameters coming from the Vue instance
191186 threads () {
192- // Here you can use Meteor reactive sources
193- // like cursors or reactive vars
194- // as you would in a Blaze template helper
195- // However, Vue reactive properties will not update
196187 return Threads .find ({}, {
197188 sort: {date: - 1 }
198189 });
199190 },
200191 // Selected thread
201- // This will update the 'selectedThread' object property on component
202192 selectedThread: {
203- // // Vue Reactivity
204- // We declare which params depends on reactive vue properties
205193 params () {
206- // Here you can use Vue reactive properties
207- // Don't use Meteor reactive sources!
208194 return {
209195 id: this .selectedThreadId
210196 };
211197 },
212- // // Meteor Reactivity
213- // This will be refresh each time above params changes from Vue
214- // Then it calls Tracker.autorun() to refresh the result
215- // each time a Meteor reactive source changes
216198 update ({id}) {
217- // Here you can use Meteor reactive sources
218- // like cursors or reactive vars
219- // Don't use Vue reactive properties!
220199 return Threads .findOne (id);
221200 },
222201 },
You can’t perform that action at this time.
0 commit comments