mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(ion-router): adds ion-router
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { Component } from '@stencil/core';
|
||||
|
||||
@Component({
|
||||
tag: 'page-one',
|
||||
})
|
||||
export class PageOne {
|
||||
|
||||
render() {
|
||||
return [
|
||||
<ion-page>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>Page One</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content>
|
||||
page one
|
||||
</ion-content>
|
||||
</ion-page>
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { Component } from '@stencil/core';
|
||||
|
||||
@Component({
|
||||
tag: 'page-two',
|
||||
})
|
||||
export class PageTwo {
|
||||
|
||||
render() {
|
||||
return [
|
||||
<ion-page>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>Page Two</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content>
|
||||
this is page two
|
||||
</ion-content>
|
||||
</ion-page>
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user