File tree 2 files changed +15
-5
lines changed 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,18 @@ export class AppHome {
15
15
< a href = "https://stenciljs.com" > stenciljs.com</ a > to get started.
16
16
</ p >
17
17
< div >
18
- < h1 > Pages</ h1 >
19
- < a href = "/web-components" > StencilJS componennts</ a > < br />
20
- < a href = "/posts-dashboard" > Posts dashboard</ a >
18
+ < h1 > Pages</ h1 >
21
19
</ div >
20
+ < button
21
+ onClick = { ( ) => Router . push ( '/web-components' ) }
22
+ >
23
+ StencilJS componennts
24
+ </ button >
25
+ < button
26
+ onClick = { ( ) => Router . push ( '/posts-dashboard' ) }
27
+ >
28
+ Posts dashboard
29
+ </ button >
22
30
< button
23
31
onClick = { ( ) => Router . push ( '/profile/sanjeet' ) }
24
32
>
Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ export class AppRoot {
26
26
< app-home-page />
27
27
</ Route >
28
28
29
- < Route path = { / ^ \/ p o s t s - d a s h b o a r d / } >
29
+ < Route
30
+ path = { / ^ \/ p o s t s - d a s h b o a r d / } >
30
31
< posts-dashboard > </ posts-dashboard >
31
32
</ Route >
32
33
33
- < Route path = { / ^ \/ w e b - c o m p o n e n t s / } >
34
+ < Route
35
+ path = { / ^ \/ w e b - c o m p o n e n t s / } >
34
36
< web-components > </ web-components >
35
37
</ Route >
36
38
You can’t perform that action at this time.
0 commit comments