chore(angular): update deps, update demo

This commit is contained in:
Dan Bucholtz
2017-11-21 16:46:22 -06:00
parent 562b5df2dc
commit 88dec08772
9 changed files with 717 additions and 10927 deletions

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@
"@angular/platform-browser": "^5.0.0",
"@angular/platform-browser-dynamic": "^5.0.0",
"@angular/router": "^5.0.0",
"@ionic/core": "latest",
"@ionic/angular": "next",
"core-js": "^2.4.1",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14"

View File

@ -5,7 +5,18 @@ import { AlertController } from '../../../../src/providers/alert-controller';
@Component({
selector: 'app-alert-page',
template: `
<button (click)="clickMe()">Click Me</button>
<ion-app>
<ion-page class="show-page">
<ion-header>
<ion-toolbar>
<ion-title>Test</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<ion-button (click)="clickMe()">Blah</ion-button>
</ion-content>
</ion-page>
</ion-app>
`
})
export class AlertPageComponent {
@ -16,7 +27,9 @@ export class AlertPageComponent {
clickMe() {
const alert = this.alertController.create({
message: 'Gretting from an ng cli app'
title: 'ohhhh snap',
message: 'Gretting from an ng cli app',
});
alert.present();
}

View File

@ -1,4 +1,4 @@
import { NgModule } from '@angular/core';
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AlertPageComponent } from './alert-page.component';
@ -9,6 +9,7 @@ import { AlertRoutingModule } from './alert-routing.module';
CommonModule,
AlertRoutingModule
],
declarations: [AlertPageComponent]
declarations: [AlertPageComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AlertModule { }

View File

@ -6,7 +6,7 @@ const routes: Routes = [
{ path: 'basic-inputs', loadChildren: 'app/basic-inputs-page/basic-inputs-page.module#BasicInputsPageModule' },
{ path: 'group-inputs', loadChildren: 'app/group-inputs-page/group-inputs-page.module#GroupInputsPageModule' },
{ path: 'home', loadChildren: 'app/home-page/home-page.module#HomePageModule' },
// { path: 'alert', loadChildren: 'app/alert/alert.module#AlertModule' }
{ path: 'alert', loadChildren: 'app/alert/alert.module#AlertModule' }
];
@NgModule({

View File

@ -4,14 +4,14 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
// import { IonicAngularModule } from '../../../src/module';
import { IonicAngularModule } from '../../../src/module';
@NgModule({
declarations: [AppComponent],
imports: [
AppRoutingModule,
BrowserModule,
// IonicAngularModule
IonicAngularModule
],
providers: [],
bootstrap: [AppComponent],

View File

@ -9,4 +9,7 @@
<li>
<a href='group-inputs'>Group Inputs Test Page</a>
</li>
<li>
<a href='alert'>Alert Page</a>
</li>
</ul>

File diff suppressed because it is too large Load Diff

View File

@ -23,12 +23,13 @@
"clean": "rm -rf dist",
"clean-generated": "node ./scripts/clean.js",
"compile": "ngc -p .",
"deploy": "np --any-branch"
"deploy": "np --any-branch",
"tsc": "tsc -p ."
},
"main": "./dist/src/index.js",
"modules": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"dependencies": {
"devDependencies": {
"@angular/common": "5.0.1",
"@angular/compiler": "5.0.1",
"@angular/compiler-cli": "5.0.1",
@ -37,13 +38,12 @@
"@angular/http": "5.0.1",
"@angular/platform-browser": "5.0.1",
"@angular/platform-browser-dynamic": "5.0.1",
"@ionic/core": "latest",
"@ionic/core": "next",
"@stencil/core": "0.0.7",
"glob": "7.1.2",
"ionicons": "~3.0.0",
"rxjs": "5.5.2",
"zone.js": "0.8.18"
},
"devDependencies": {
"typescript": "~2.4.2",
"glob": "7.1.2"
"zone.js": "0.8.18"
}
}