Skip to content

Commit ce98715

Browse files
committed
docs(vue): use better title example
1 parent 233761a commit ce98715

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docs/vue/your-first-app.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,26 @@ import ExploreContainer from '@/components/ExploreContainer.vue';
171171
`ion-header` represents the top navigation and toolbar, with "Tab 2" as the title (there are two of them due to iOS [Collapsible Large Title](../api/title.md#collapsible-large-titles) support). Rename both `ion-title` elements to:
172172

173173
```vue
174-
<ion-title>Photo Gallery</ion-title>
174+
<template>
175+
<ion-page>
176+
<ion-header>
177+
<ion-toolbar>
178+
<!-- CHANGE: Update title -->
179+
<ion-title>Photo Gallery</ion-title>
180+
</ion-toolbar>
181+
</ion-header>
182+
<ion-content :fullscreen="true">
183+
<ion-header collapse="condense">
184+
<ion-toolbar>
185+
<!-- CHANGE: Update title -->
186+
<ion-title size="large">Photo Gallery</ion-title>
187+
</ion-toolbar>
188+
</ion-header>
189+
190+
<!-- ...existing code... -->
191+
</ion-content>
192+
</ion-page>
193+
</template>
175194
```
176195

177196
We put the visual aspects of our app into `<ion-content>`. In this case, it’s where we’ll add a button that opens the device’s camera as well as displays the image captured by the camera. Start by adding a [floating action button](../api/fab.md) (FAB) to the bottom of the page and set the camera image as the icon.

0 commit comments

Comments
 (0)