Skip to content

Commit

Permalink
refactor: <ion-back-button />
Browse files Browse the repository at this point in the history
  • Loading branch information
icarusgk authored and mapsandapps committed Dec 15, 2023
1 parent e17e885 commit bf58a61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
8 changes: 2 additions & 6 deletions static/usage/v7/back-button/basic/vue/page_two_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
</ion-content>
</template>

<script lang="ts">
import { IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/vue';
export default {
components: { IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar },
};
<script lang="ts" setup>
import { IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/vue';
</script>
```
13 changes: 3 additions & 10 deletions static/usage/v7/back-button/custom/vue/page_two_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,8 @@
</ion-content>
</template>

<script lang="ts">
import { IonHeader, IonTitle, IonToolbar, IonContent, IonButtons, IonBackButton } from '@ionic/vue';
import { caretBack } from 'ionicons/icons';
export default {
components: { IonHeader, IonTitle, IonToolbar, IonContent, IonButtons, IonBackButton },
setup() {
return { caretBack };
},
};
<script lang="ts" setup>
import { IonHeader, IonTitle, IonToolbar, IonContent, IonButtons, IonBackButton } from '@ionic/vue';
import { caretBack } from 'ionicons/icons';
</script>
```

0 comments on commit bf58a61

Please sign in to comment.