mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(build): all demos build in ngc w/ 2.0.0
all demos build in ngc w/ 2.0.0
This commit is contained in:
@ -6,23 +6,11 @@
|
||||
"author": "Ionic Team <hi@ionic.io> (http://ionic.io)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@angular/common": "2.0.0-rc.7",
|
||||
"@angular/compiler": "2.0.0-rc.7",
|
||||
"@angular/core": "2.0.0-rc.7",
|
||||
"@angular/forms": "2.0.0-rc.7",
|
||||
"@angular/http": "2.0.0-rc.7",
|
||||
"@angular/platform-browser": "2.0.0-rc.7",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.7",
|
||||
"@angular/platform-server": "2.0.0-rc.7",
|
||||
"ionic-angular": "nightly",
|
||||
"ionic-native": "1.3.20",
|
||||
"ionicons": "3.0.0",
|
||||
"rxjs-es": "5.0.0-beta.12",
|
||||
"zone.js": "^0.6.23"
|
||||
"ionicons": "3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/compiler-cli": "0.6.2",
|
||||
"@ionic/app-scripts": "latest",
|
||||
"typescript": "2.0.2"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
import { Animation, ModalController, NavParams, ViewController } from 'ionic-angular';
|
||||
import { ModalController, NavParams, ViewController } from 'ionic-angular';
|
||||
|
||||
|
||||
@Component({
|
||||
@ -19,12 +19,6 @@ export class ModalFirstPage {
|
||||
let myModal = this.modalCtrl.create(ModalContentPage, { 'myParam': this.myParam });
|
||||
myModal.present();
|
||||
}
|
||||
openCustomAnimationModal() {
|
||||
let myModal = this.modalCtrl.create(ModalContentPage, {
|
||||
animation: 'my-fade-in',
|
||||
});
|
||||
myModal.present();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -53,28 +47,3 @@ export class ModalContentPage {
|
||||
export class ApiDemoApp {
|
||||
root = ModalFirstPage;
|
||||
}
|
||||
|
||||
export class FadeIn extends Animation {
|
||||
constructor(enteringView: ViewController, leavingView: ViewController) {
|
||||
super(enteringView.pageRef());
|
||||
this
|
||||
.easing('ease')
|
||||
.duration(1000)
|
||||
.fromTo('translateY', '0%', '0%')
|
||||
.fromTo('opacity', 0, 1)
|
||||
.beforeAddClass('show-page');
|
||||
}
|
||||
}
|
||||
Animation.register('my-fade-in', FadeIn);
|
||||
|
||||
export class FadeOut extends Animation {
|
||||
constructor(enteringView: ViewController, leavingView: ViewController) {
|
||||
super(leavingView.pageRef());
|
||||
this
|
||||
.easing('ease')
|
||||
.duration(500)
|
||||
.fromTo('opacity', 1, 0)
|
||||
.beforeAddClass('show-page');
|
||||
}
|
||||
}
|
||||
Animation.register('my-fade-out', FadeOut);
|
||||
|
@ -13,8 +13,8 @@
|
||||
"types": ["jasmine", "protractor"]
|
||||
},
|
||||
"include": [
|
||||
"./src/toolbar/app.module.ts",
|
||||
"./src/toolbar/main.ts"
|
||||
"./src/**/app.module.ts",
|
||||
"./src/**/main.ts"
|
||||
],
|
||||
"compileOnSave": false,
|
||||
"buildOnSave": false,
|
||||
|
Reference in New Issue
Block a user