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

@ -271,7 +271,7 @@ class ActionSheetCmp {
}
}
onPageLoaded() {
ionViewLoaded() {
// normalize the data
let buttons: any[] = [];
@ -305,7 +305,7 @@ class ActionSheetCmp {
this.d.buttons = buttons;
}
onPageDidEnter() {
ionViewDidEnter() {
let activeElement: any = document.activeElement;
if (document.activeElement) {
activeElement.blur();