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>