You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the template, in the `home.page.html` file, uses those components:
148
150
149
-
```html
151
+
```html title="src/app/home/home.page.html"
150
152
<ion-header[translucent]="true">
151
153
<ion-toolbar>
152
154
<ion-title> Blank </ion-title>
@@ -170,17 +172,17 @@ And the template, in the `home.page.html` file, uses those components:
170
172
</ion-content>
171
173
```
172
174
173
-
This creates a page with a header and scrollable content area. The second header shows a [collapsible large title](/docs/api/title#collapsible-large-titles) that displays when at the top of the content, then condenses to show the smaller title in the first header when scrolling down.
175
+
This creates a page with a header and scrollable content area. The second header shows a [collapsible large title](/docs/api/title.md#collapsible-large-titles) that displays when at the top of the content, then condenses to show the smaller title in the first header when scrolling down.
174
176
175
177
:::tip Learn More
176
-
For detailed information about Ionic layout components, see the [Header](/docs/api/header), [Toolbar](/docs/api/toolbar), [Title](/docs/api/title), and [Content](/docs/api/content) documentation.
178
+
For detailed information about Ionic layout components, see the [Header](/docs/api/header.md), [Toolbar](/docs/api/toolbar.md), [Title](/docs/api/title.md), and [Content](/docs/api/content.md) documentation.
177
179
:::
178
180
179
181
## Add an Ionic Component
180
182
181
-
You can enhance your Home page with more Ionic UI components. For example, add a [Button](/docs/api/button) at the end of the `ion-content`:
183
+
You can enhance your Home page with more Ionic UI components. For example, add a [Button](/docs/api/button.md) at the end of the `ion-content`:
182
184
183
-
```html
185
+
```html title="src/app/home/home.page.html"
184
186
<ion-content>
185
187
<!-- existing content -->
186
188
@@ -190,7 +192,7 @@ You can enhance your Home page with more Ionic UI components. For example, add a
190
192
191
193
Then, import the `IonButton` component in `home.page.ts`:
@@ -255,14 +257,14 @@ import { RouterLink } from '@angular/router';
255
257
```
256
258
257
259
:::info
258
-
Navigating can also be performed using Angular's Router service. See the [Angular Navigation documentation](/docs/angular/navigation#navigating-to-different-routes) for more information.
260
+
Navigating can also be performed using Angular's Router service. See the [Angular Navigation documentation](/docs/angular/navigation.md#navigating-to-different-routes) for more information.
259
261
:::
260
262
261
263
## Add Icons to the New Page
262
264
263
-
Ionic Angular comes with [Ionicons](https://ionic.io/ionicons/) pre-installed. You can use any icon by setting the `name` property on the `ion-icon` component. Add the following icons to `new/new.page.html`:
265
+
Ionic Angular comes with [Ionicons](https://ionic.io/ionicons/) pre-installed. You can use any icon by setting the `name` property on the `ion-icon` component. Add the following icons to `new.page.html`:
264
266
265
-
```html
267
+
```html title="src/app/new/new.page.html"
266
268
<ion-content>
267
269
<!-- existing content -->
268
270
@@ -271,9 +273,9 @@ Ionic Angular comes with [Ionicons](https://ionic.io/ionicons/) pre-installed. Y
271
273
</ion-content>
272
274
```
273
275
274
-
You'll also need to import and register these icons in `new/new.page.ts`:
276
+
You'll also need to import and register these icons in `new.page.ts`:
0 commit comments