Skip to content

Instantly share code, notes, and snippets.

@lwakefield
Created March 1, 2016 13:15
Show Gist options
  • Save lwakefield/48058e830338ea015acd to your computer and use it in GitHub Desktop.
Save lwakefield/48058e830338ea015acd to your computer and use it in GitHub Desktop.
let Todos = new Mongo.Collection('todos');
let App = Vue.component('app', {
template: '#app',
data() {
return {
todos: []
}
},
created() {
Tracker.autorun( () => this.todos = Todos.find().fetch() );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment