Added dynamic routing for events
parent
c6820b0428
commit
37cf863f2a
@ -1,3 +1,8 @@
|
||||
<template>
|
||||
<h1>Event Listing</h1>
|
||||
<div>
|
||||
<h1>Event Listing</h1>
|
||||
<router-link :to="{ name: 'event-show', params: { event_id: 1 } }"
|
||||
>Event # 1</router-link
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -1,3 +1,9 @@
|
||||
<template>
|
||||
<h1>Event Show</h1>
|
||||
<h1>Showing Event #{{ event_id }}</h1>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['event_id']
|
||||
}
|
||||
</script>
|
||||
|
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<h1>404 Route not found</h1>
|
||||
</template>
|
Loading…
Reference in New Issue