This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import Vue from 'vue'; | |
| import App from 'components/app'; | |
| new Vue({ | |
| el: 'body', | |
| components: { App }, | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (Meteor.isClient) { | |
| Meteor.startup(() => { | |
| new Vue({ | |
| el: 'body', | |
| }); | |
| }); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | let Todos = new Mongo.Collection('todos'); | |
| let App = Vue.component('app', { | |
| template: '#app', | |
| data() { | |
| return { | |
| todos: [] | |
| } | |
| }, | |
| created() { | |
| Tracker.autorun( () => this.todos = Todos.find().fetch() ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <head> | |
| <title>meteor-vue-todo</title> | |
| </head> | |
| <body> | |
| <app></app> | |
| <template id="app"> | |
| <div class="app"> | |
| <h1>Meteor Vue Todos</h1> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | let Todos = new Mongo.Collection('todos'); | |
| if (Meteor.isClient) { | |
| let App = Vue.component('app', { | |
| template: '#app', | |
| data() { | |
| return { | |
| todos: [], | |
| newTodo: '' | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var elixir = require('laravel-elixir'); | |
| elixir.config.assetsPath = 'src'; | |
| elixir.config.publicPath = 'dist'; | |
| elixir(function(mix) { | |
| mix.browserSync({ | |
| files: ['**/*.html', '**/*.css', '**/*.js'] | |
| }); | |
| mix.browserify('app.js'); | |
| mix.sass('app.scss'); | 
NewerOlder