Skip to content

Commit

Permalink
chore(build): all demos build in ngc w/ 2.0.0
Browse files Browse the repository at this point in the history
all demos build in ngc w/ 2.0.0
  • Loading branch information
danbucholtz committed Sep 16, 2016
1 parent 716e500 commit 1158a96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 47 deletions.
14 changes: 1 addition & 13 deletions demos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,11 @@
"author": "Ionic Team <[email protected]> (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"
}
}
33 changes: 1 addition & 32 deletions demos/src/modal/app.component.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand All @@ -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();
}
}


Expand Down Expand Up @@ -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);
4 changes: 2 additions & 2 deletions demos/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1158a96

Please sign in to comment.