Skip to content

Commit bf58a61

Browse files
icarusgkmapsandapps
authored andcommitted
refactor: <ion-back-button />
1 parent e17e885 commit bf58a61

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

static/usage/v7/back-button/basic/vue/page_two_vue.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
</ion-content>
1515
</template>
1616

17-
<script lang="ts">
18-
import { IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/vue';
19-
20-
export default {
21-
components: { IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar },
22-
};
17+
<script lang="ts" setup>
18+
import { IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/vue';
2319
</script>
2420
```

static/usage/v7/back-button/custom/vue/page_two_vue.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,8 @@
1414
</ion-content>
1515
</template>
1616

17-
<script lang="ts">
18-
import { IonHeader, IonTitle, IonToolbar, IonContent, IonButtons, IonBackButton } from '@ionic/vue';
19-
import { caretBack } from 'ionicons/icons';
20-
21-
export default {
22-
components: { IonHeader, IonTitle, IonToolbar, IonContent, IonButtons, IonBackButton },
23-
setup() {
24-
return { caretBack };
25-
},
26-
};
17+
<script lang="ts" setup>
18+
import { IonHeader, IonTitle, IonToolbar, IonContent, IonButtons, IonBackButton } from '@ionic/vue';
19+
import { caretBack } from 'ionicons/icons';
2720
</script>
2821
```

0 commit comments

Comments
 (0)