Created
March 21, 2019 06:09
-
-
Save gtalarico/5699c1bccb5ed7f8224d2d97c338fb4b to your computer and use it in GitHub Desktop.
three-vue-template-1
This file contains 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 id="app"> | |
<navbar /> | |
<router-link to="/">Home</router-link> | |
</div> | |
</template> | |
<script> | |
import Navbar from '@/components/Navbar.vue' | |
export default { | |
name: 'app', | |
components: { | |
'navbar': Navbar | |
} | |
} | |
</script> |
This file contains 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 class="home"> | |
Home Component | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'home', | |
components: { | |
} | |
} | |
</script> |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> | |
<!-- Bulma --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css" /> | |
<title>threejs-vue-template</title> | |
</head> | |
<body> | |
<noscript> | |
<strong>We're sorry but threejs-vue-template doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | |
</noscript> | |
<div id="app"></div> | |
<!-- built files will be auto injected --> | |
</body> | |
</html> |
This file contains 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 './App.vue' | |
import router from './router' | |
Vue.config.productionTip = false | |
new Vue({ | |
router, | |
render: h => h(App) | |
}).$mount('#app') |
This file contains 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 Router from 'vue-router' | |
import Home from './views/Home.vue' | |
Vue.use(Router) | |
export default new Router({ | |
routes: [ | |
{ | |
path: '/', | |
name: 'home', | |
component: Home | |
}, | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment