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 VueRouter from 'vue-router' | |
Vue.use(VueRouter) | |
import About from './components/About.vue' | |
import Hobbies from './components/Hobbies.vue' | |
const routes = [ | |
{ |
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
<template> | |
<div>About Component</div> | |
</template> | |
<script> | |
export default { | |
} | |
</script> |
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
<template> | |
<div>Hobbies Component</div> | |
</template> | |
<script> | |
export default { | |
} | |
</script> |
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 { Meteor } from 'meteor/meteor' | |
import Vue from 'vue'; | |
import router from './routes' | |
import AppComponent from '/imports/ui/App.vue'; | |
Meteor.startup(() => { | |
new Vue({ | |
router, | |
render: (h) => h(AppComponent), |
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
<template> | |
<div> | |
<h1>Meteor and Vue</h1> | |
<router-link to="/about">About</router-link> | |
<router-link to="/hobbies">Hobbies</router-link> | |
<div> | |
<router-view></router-view> | |
</div> | |
</div> | |
</template> |
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 { Meteor } from 'meteor/meteor' | |
import Vue from 'vue' | |
import AppComponent from '/imports/ui/App.vue'; | |
Meteor.startup(() => { | |
new Vue({ | |
render: (h) => h(AppComponent), | |
}).$mount('#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
<template> | |
<div> | |
<h1>Meteor and Vue</h1> | |
</div> | |
</template> | |
<script> | |
export default { | |
} | |
</script> | |
<style> |
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>myapp</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
</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
import { Meteor } from 'meteor/meteor' | |
import Vue from 'vue'; | |
import VueMeteorTracker from 'vue-meteor-tracker' | |
import router from './routes' | |
import AppComponent from '/imports/ui/App.vue'; | |
Meteor.startup(() => { |
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 { Mongo } from 'meteor/mongo' | |
export const Items = new Mongo.Collection('hobbies') |
OlderNewer