fix(modal): set root nav view controller

This commit is contained in:
Adam Bradley
2016-02-10 11:38:57 -06:00
parent 17c1846f05
commit 8bde8d7522
3 changed files with 10 additions and 7 deletions

View File

@ -1,5 +1,5 @@
import {App, Page, Config, Platform} from 'ionic/ionic';
import {Modal, ActionSheet, NavController, NavParams, Animation, ViewController} from 'ionic/ionic';
import {Modal, ActionSheet, NavController, NavParams, Transition, ViewController} from 'ionic/ionic';
@Page({
@ -284,8 +284,8 @@ class E2EApp {
}
class FadeIn extends Animation {
constructor(enteringView, leavingView) {
class FadeIn extends Transition {
constructor(enteringView: ViewController, leavingView: ViewController) {
super(enteringView.pageRef());
this
.easing('ease')
@ -295,10 +295,10 @@ class FadeIn extends Animation {
.before.addClass('show-page');
}
}
Animation.register('my-fade-in', FadeIn);
Transition.register('my-fade-in', FadeIn);
class FadeOut extends Animation {
constructor(enteringView, leavingView) {
class FadeOut extends Transition {
constructor(enteringView: ViewController, leavingView: ViewController) {
super(leavingView.pageRef());
this
.easing('ease')
@ -307,4 +307,4 @@ class FadeOut extends Animation {
.before.addClass('show-page');
}
}
Animation.register('my-fade-out', FadeOut);
Transition.register('my-fade-out', FadeOut);

View File

@ -416,6 +416,8 @@ export class NavController extends Ion {
return;
}
enteringView.setNav(rootNav);
opts.keyboardClose = false;
opts.direction = 'forward';

View File

@ -16,6 +16,7 @@ export * from './util/events'
export * from './util/keyboard'
export * from './animations/animation'
export * from './transitions/transition'
export * from './translation/translate'
export * from './translation/translate_pipe'