Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
WebKuliner2021
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiarro Elprida Tamba
WebKuliner2021
Commits
e29e00f1
Commit
e29e00f1
authored
4 years ago
by
Tiarro Elprida Tamba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
21a9c3e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
index.js
WebKuliner/src/router/index.js
+53
-0
No files found.
WebKuliner/src/router/index.js
0 → 100644
View file @
e29e00f1
import
Vue
from
'vue'
import
VueRouter
from
'vue-router'
import
Home
from
'../views/Home.vue'
import
Foods
from
'@/views/Foods'
import
FoodDetail
from
'@/views/FoodDetail.vue'
import
Keranjang
from
'@/views/Keranjang'
import
PesananSukses
from
'@/views/PesananSukses'
Vue
.
use
(
VueRouter
)
const
routes
=
[
{
path
:
'/'
,
name
:
'Home'
,
component
:
Home
},
{
path
:
'/foods'
,
name
:
'Foods'
,
component
:
Foods
},
{
path
:
'/foods/:id'
,
name
:
'FoodDetail'
,
component
:
FoodDetail
},
{
path
:
'/keranjang'
,
name
:
'Keranjang'
,
component
:
Keranjang
},
{
path
:
'/pesanan-sukses'
,
name
:
'PesananSukses'
,
component
:
PesananSukses
},
{
path
:
'/about'
,
name
:
'About'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/About.vue'
)
}
]
const
router
=
new
VueRouter
({
mode
:
'history'
,
base
:
process
.
env
.
BASE_URL
,
routes
})
export
default
router
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment