UNPKG

ionic-angular

Version:

A powerful framework for building mobile and progressive web apps with JavaScript and Angular

43 lines 1.68 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { Animation } from '../animations/animation'; import { Transition } from './transition'; /** * @hidden */ var PageTransition = (function (_super) { __extends(PageTransition, _super); function PageTransition() { return _super !== null && _super.apply(this, arguments) || this; } PageTransition.prototype.init = function () { var _this = this; if (this.enteringView) { this.enteringPage = new Animation(this.plt, this.enteringView.pageRef()); this.add(this.enteringPage.beforeAddClass('show-page')); // Resize content before transition starts this.beforeAddRead(function () { _this.enteringView.readReady.emit(); }); this.beforeAddWrite(function () { _this.enteringView.writeReady.emit(); }); } }; PageTransition.prototype.destroy = function () { _super.prototype.destroy.call(this); this.enteringPage && this.enteringPage.destroy(); this.enteringPage = null; }; return PageTransition; }(Transition)); export { PageTransition }; //# sourceMappingURL=page-transition.js.map