일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- vmware
- 시퀸스 자료형
- 칼리
- server
- Visual Intelligence
- representation learning
- centOS
- Machine Learning
- 관리
- TensorFlow
- 설치
- Python
- 가상머신
- xshell
- 리눅스
- 머신러닝
- Network
- 텐서플로우
- linux
- 운영체제
- 선형회귀
- Language Intelligence
- 설정
- vue
- Kali
- python 설치
- ML
- Windows
- Python 기초
- vuejs
Archives
- Today
- Total
homebody's blog
[Vue] 2. Hello world만 출력 본문
-
프로젝트에서 src 폴더 아래 views 폴더를 생성한 후 MainPage.vue 파일을 생성한다
-
MainPage.vue 파일 작성
<template> <div> Hello World!! </div> </template> <script> export default { name: 'MainPage' } </script>
-
router/index.js 수정
import Vue from 'vue' import Router from 'vue-router' import MainPage from '@/views/MainPage' Vue.use(Router) export default new Router({ routes: [ { path: '/', name: 'MainPage', component: MainPage } ] })
-
App.vue 수정
<template> <div id="app"> <router-view/> </div> </template> <script> export default { name: 'App' } </script>
-
서버 가동(http://localhost:8080)
'Vue.js' 카테고리의 다른 글
[Vue] 3. Vue파일 Component로 넣기 (0) | 2019.07.31 |
---|---|
[Vue] 1. npm, Vue 설치 및 Vue 프로젝트 생성 (0) | 2019.07.30 |
Comments