mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
22 lines
376 B
Vue
22 lines
376 B
Vue
<template>
|
|
<div @click="catchIonicGoBack">
|
|
<router-view :name="name"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import catchIonicGoBack from '../mixins/catch-ionic-go-back.js'
|
|
|
|
export default {
|
|
name: 'IonVueRouter',
|
|
mixins: [catchIonicGoBack],
|
|
props: {
|
|
// A name to call "named views" by
|
|
name: {
|
|
type: String,
|
|
default: 'default',
|
|
},
|
|
},
|
|
}
|
|
</script>
|