feat(ion-router): adds ion-router

This commit is contained in:
Manu Mtz.-Almeida
2018-02-07 19:05:39 +01:00
parent 5540ecefed
commit 4e6ebf59c5
27 changed files with 4113 additions and 493 deletions

View File

@ -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>
];
}
}

View File

@ -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>
];
}
}

View File

@ -0,0 +1,5 @@
exports.config = {
generateWWW: true,
wwwDir: '../../test-components',
serviceWorker: false
};

View 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"
]
}