mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
chore(angular): update deps, update demo
This commit is contained in:
10479
packages/angular/demo/package-lock.json
generated
10479
packages/angular/demo/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -21,7 +21,7 @@
|
|||||||
"@angular/platform-browser": "^5.0.0",
|
"@angular/platform-browser": "^5.0.0",
|
||||||
"@angular/platform-browser-dynamic": "^5.0.0",
|
"@angular/platform-browser-dynamic": "^5.0.0",
|
||||||
"@angular/router": "^5.0.0",
|
"@angular/router": "^5.0.0",
|
||||||
"@ionic/core": "latest",
|
"@ionic/angular": "next",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"rxjs": "^5.5.2",
|
"rxjs": "^5.5.2",
|
||||||
"zone.js": "^0.8.14"
|
"zone.js": "^0.8.14"
|
||||||
|
@ -5,7 +5,18 @@ import { AlertController } from '../../../../src/providers/alert-controller';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-alert-page',
|
selector: 'app-alert-page',
|
||||||
template: `
|
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 {
|
export class AlertPageComponent {
|
||||||
@ -16,7 +27,9 @@ export class AlertPageComponent {
|
|||||||
|
|
||||||
clickMe() {
|
clickMe() {
|
||||||
const alert = this.alertController.create({
|
const alert = this.alertController.create({
|
||||||
message: 'Gretting from an ng cli app'
|
title: 'ohhhh snap',
|
||||||
|
message: 'Gretting from an ng cli app',
|
||||||
|
|
||||||
});
|
});
|
||||||
alert.present();
|
alert.present();
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
import { AlertPageComponent } from './alert-page.component';
|
import { AlertPageComponent } from './alert-page.component';
|
||||||
@ -9,6 +9,7 @@ import { AlertRoutingModule } from './alert-routing.module';
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
AlertRoutingModule
|
AlertRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [AlertPageComponent]
|
declarations: [AlertPageComponent],
|
||||||
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
})
|
})
|
||||||
export class AlertModule { }
|
export class AlertModule { }
|
||||||
|
@ -6,7 +6,7 @@ const routes: Routes = [
|
|||||||
{ path: 'basic-inputs', loadChildren: 'app/basic-inputs-page/basic-inputs-page.module#BasicInputsPageModule' },
|
{ 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: 'group-inputs', loadChildren: 'app/group-inputs-page/group-inputs-page.module#GroupInputsPageModule' },
|
||||||
{ path: 'home', loadChildren: 'app/home-page/home-page.module#HomePageModule' },
|
{ 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({
|
@NgModule({
|
||||||
|
@ -4,14 +4,14 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
|
|
||||||
// import { IonicAngularModule } from '../../../src/module';
|
import { IonicAngularModule } from '../../../src/module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent],
|
||||||
imports: [
|
imports: [
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
// IonicAngularModule
|
IonicAngularModule
|
||||||
],
|
],
|
||||||
providers: [],
|
providers: [],
|
||||||
bootstrap: [AppComponent],
|
bootstrap: [AppComponent],
|
||||||
|
@ -9,4 +9,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href='group-inputs'>Group Inputs Test Page</a>
|
<a href='group-inputs'>Group Inputs Test Page</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href='alert'>Alert Page</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
1118
packages/angular/package-lock.json
generated
1118
packages/angular/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -23,12 +23,13 @@
|
|||||||
"clean": "rm -rf dist",
|
"clean": "rm -rf dist",
|
||||||
"clean-generated": "node ./scripts/clean.js",
|
"clean-generated": "node ./scripts/clean.js",
|
||||||
"compile": "ngc -p .",
|
"compile": "ngc -p .",
|
||||||
"deploy": "np --any-branch"
|
"deploy": "np --any-branch",
|
||||||
|
"tsc": "tsc -p ."
|
||||||
},
|
},
|
||||||
"main": "./dist/src/index.js",
|
"main": "./dist/src/index.js",
|
||||||
"modules": "./dist/src/index.js",
|
"modules": "./dist/src/index.js",
|
||||||
"types": "./dist/src/index.d.ts",
|
"types": "./dist/src/index.d.ts",
|
||||||
"dependencies": {
|
"devDependencies": {
|
||||||
"@angular/common": "5.0.1",
|
"@angular/common": "5.0.1",
|
||||||
"@angular/compiler": "5.0.1",
|
"@angular/compiler": "5.0.1",
|
||||||
"@angular/compiler-cli": "5.0.1",
|
"@angular/compiler-cli": "5.0.1",
|
||||||
@ -37,13 +38,12 @@
|
|||||||
"@angular/http": "5.0.1",
|
"@angular/http": "5.0.1",
|
||||||
"@angular/platform-browser": "5.0.1",
|
"@angular/platform-browser": "5.0.1",
|
||||||
"@angular/platform-browser-dynamic": "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",
|
"ionicons": "~3.0.0",
|
||||||
"rxjs": "5.5.2",
|
"rxjs": "5.5.2",
|
||||||
"zone.js": "0.8.18"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"typescript": "~2.4.2",
|
"typescript": "~2.4.2",
|
||||||
"glob": "7.1.2"
|
"zone.js": "0.8.18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user