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
@@ -203,7 +199,7 @@ When you visit the root URL (`/`), the `home-page` component will be loaded. Whe
203
199
204
200
Create a new directory called `pages` inside the `src` folder, then add a file called `HomePage.js` in that directory with the following content:
205
201
206
-
```js
202
+
```js title="src/pages/HomePage.js"
207
203
classHomePageextendsHTMLElement {
208
204
connectedCallback() {
209
205
this.innerHTML=`
@@ -236,7 +232,7 @@ For detailed information about Ionic layout components, see the [Header](/docs/a
236
232
237
233
Next, add a `<script>` tag before the `src/main.js` import in `index.html` to import the Home page:
238
234
239
-
```html
235
+
```html title="index.html"
240
236
<scripttype="module">
241
237
import'./src/pages/HomePage.js';
242
238
</script>
@@ -252,7 +248,7 @@ At this point your browser should be displaying the Home page.
252
248
253
249
You can enhance your Home page with more Ionic UI components. For example, add a [Button](/docs/api/button) to navigate to another page. Update the `HomePage` component in `src/pages/HomePage.js`:
0 commit comments