Skip to content

Commit a45f26e

Browse files
committed
docs(angular): use better title change example
1 parent 7d154f8 commit a45f26e

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

docs/angular/your-first-app.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,23 @@ Open `/src/app/tab2/tab2.page.html`. We see:
163163
`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:
164164

165165
```html
166-
<ion-title>Photo Gallery</ion-title>
166+
<ion-header [translucent]="true">
167+
<ion-toolbar>
168+
<!-- CHANGE: Update title -->
169+
<ion-title> Photo Gallery </ion-title>
170+
</ion-toolbar>
171+
</ion-header>
172+
173+
<ion-content [fullscreen]="true">
174+
<ion-header collapse="condense">
175+
<ion-toolbar>
176+
<!-- CHANGE: Update title -->
177+
<ion-title size="large">Photo Gallery</ion-title>
178+
</ion-toolbar>
179+
</ion-header>
180+
181+
<app-explore-container name="Tab 2 page"></app-explore-container>
182+
</ion-content>
167183
```
168184

169185
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.

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,23 @@ Open `/src/app/tab2/tab2.page.html`. We see:
163163
`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:
164164

165165
```html
166-
<ion-title>Photo Gallery</ion-title>
166+
<ion-header [translucent]="true">
167+
<ion-toolbar>
168+
<!-- CHANGE: Update title -->
169+
<ion-title> Photo Gallery </ion-title>
170+
</ion-toolbar>
171+
</ion-header>
172+
173+
<ion-content [fullscreen]="true">
174+
<ion-header collapse="condense">
175+
<ion-toolbar>
176+
<!-- CHANGE: Update title -->
177+
<ion-title size="large">Photo Gallery</ion-title>
178+
</ion-toolbar>
179+
</ion-header>
180+
181+
<app-explore-container name="Tab 2 page"></app-explore-container>
182+
</ion-content>
167183
```
168184

169185
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)