mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +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>
|
||||
];
|
||||
}
|
||||
}
|
5
packages/core/scripts/test-components/stencil.config.js
Normal file
5
packages/core/scripts/test-components/stencil.config.js
Normal file
@ -0,0 +1,5 @@
|
||||
exports.config = {
|
||||
generateWWW: true,
|
||||
wwwDir: '../../test-components',
|
||||
serviceWorker: false
|
||||
};
|
22
packages/core/scripts/test-components/tsconfig.json
Normal file
22
packages/core/scripts/test-components/tsconfig.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnreachableCode": false,
|
||||
"declaration": false,
|
||||
"experimentalDecorators": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"es2015"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"module": "es2015",
|
||||
"target": "es2015",
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"jsx": "react",
|
||||
"jsxFactory": "h"
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user