Experimenting with lifecycle events

This commit is contained in:
Max Lynch
2015-06-01 17:18:02 -05:00
parent 6af06138ac
commit b7747d1620
3 changed files with 21 additions and 1 deletions

View File

@@ -34,6 +34,14 @@ export class FirstPage {
this.val = Math.round(Math.random() * 8999) + 1000;
}
viewLoaded() {
console.log('VIEW LOADED');
}
viewWillShow() {
console.log('VIEW WILL SHOW');
}
push() {
this.nav.push(SecondPage, { id: 8675309, myData: [1,2,3,4] }, { animation: 'ios' });
}