Skip to content

Commit c19dbea

Browse files
committed
docs(angular): add clear title example
1 parent db3959b commit c19dbea

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

docs/vue/your-first-app.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,26 @@ Open `/src/views/Tab2.vue`. We see:
151151
`ion-header` represents the top navigation and toolbar, with "Tab 2" as the title. Let’s rename it:
152152

153153
```html
154-
<ion-title>Photo Gallery</ion-title>
154+
<template>
155+
<ion-page>
156+
<ion-header>
157+
<ion-toolbar>
158+
<!-- CHANGE: Update title. -->
159+
<ion-title>Photo Gallery</ion-title>
160+
</ion-toolbar>
161+
</ion-header>
162+
<ion-content :fullscreen="true">
163+
<ion-header collapse="condense">
164+
<ion-toolbar>
165+
<!-- CHANGE: Update title. -->
166+
<ion-title size="large">Photo Gallery</ion-title>
167+
</ion-toolbar>
168+
</ion-header>
169+
170+
<ExploreContainer name="Tab 2 page" />
171+
</ion-content>
172+
</ion-page>
173+
</template>
155174
```
156175

157176
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. But first, remove the `ExploreContainer` component, beginning with the import statement:

versioned_docs/version-v7/vue/your-first-app.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,26 @@ Open `/src/views/Tab2.vue`. We see:
151151
`ion-header` represents the top navigation and toolbar, with "Tab 2" as the title. Let’s rename it:
152152

153153
```html
154-
<ion-title>Photo Gallery</ion-title>
154+
<template>
155+
<ion-page>
156+
<ion-header>
157+
<ion-toolbar>
158+
<!-- CHANGE: Update title. -->
159+
<ion-title>Photo Gallery</ion-title>
160+
</ion-toolbar>
161+
</ion-header>
162+
<ion-content :fullscreen="true">
163+
<ion-header collapse="condense">
164+
<ion-toolbar>
165+
<!-- CHANGE: Update title. -->
166+
<ion-title size="large">Photo Gallery</ion-title>
167+
</ion-toolbar>
168+
</ion-header>
169+
170+
<ExploreContainer name="Tab 2 page" />
171+
</ion-content>
172+
</ion-page>
173+
</template>
155174
```
156175

157176
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. But first, remove the `ExploreContainer` component, beginning with the import statement:

0 commit comments

Comments
 (0)