refactor(lifecycle): lifecycle methods prefixed w/ ionView

BREAKING CHANGES:

- Lifecycle method prefixes have changed to `ionView`
- `onPageLoaded` renamed to `ionViewLoaded`
- `onPageWillEnter` renamed to `ionViewWillEnter`
- `onPageDidEnter` renamed to `ionViewDidEnter`
- `onPageWillLeave` renamed to `ionViewWillLeave`
- `onPageDidLeave` renamed to `ionViewDidLeave`
- `onPageWillUnload` renamed to `ionViewWillUnload`
- `onPageDidUnload` renamed to `ionViewDidUnload`
This commit is contained in:
Adam Bradley
2016-06-01 12:06:15 -05:00
parent 21753a88fe
commit c18335e946
11 changed files with 157 additions and 151 deletions

View File

@ -190,16 +190,16 @@ class PopoverCmp {
this.id = (++popoverIds);
}
onPageWillEnter() {
ionViewWillEnter() {
this._loader.loadNextToLocation(this._navParams.data.componentType, this.viewport).then(componentRef => {
this._viewCtrl.setInstance(componentRef.instance);
// manually fire onPageWillEnter() since PopoverCmp's onPageWillEnter already happened
// manually fire ionViewWillEnter() since PopoverCmp's ionViewWillEnter already happened
this._viewCtrl.fireWillEnter();
});
}
onPageDidEnter() {
ionViewDidEnter() {
let activeElement: any = document.activeElement;
if (document.activeElement) {
activeElement.blur();