docs(demos): always use arrow functions

Closes #459
This commit is contained in:
Drew Rygh
2015-11-12 14:32:38 -06:00
parent 24d823ab5f
commit 1dd2079809
4 changed files with 16 additions and 16 deletions

View File

@ -49,13 +49,13 @@ export class BasicPage {
destructiveText: 'Delete',
titleText: 'Albums',
cancelText: 'Cancel',
cancel: function() {
cancel: () => {
console.log('Canceled');
},
destructiveButtonClicked: () => {
console.log('Destructive clicked');
},
buttonClicked: function(index) {
buttonClicked: (index) => {
console.log('Button clicked', index);
if (index == 1) { return false; }
return true;

View File

@ -13,7 +13,7 @@ import * as helpers from '../../helpers';
'</ion-content>',
directives: [forwardRef(() => helpers.AndroidAttribute)],
})
class TabTextCtrl {
class TabTextPage {
constructor() {
}
}
@ -28,8 +28,8 @@ class TabTextCtrl {
})
export class BasicPage {
constructor() {
this.tabOne = TabTextCtrl;
this.tabTwo = TabTextCtrl;
this.tabThree = TabTextCtrl;
this.tabOne = TabTextPage;
this.tabTwo = TabTextPage;
this.tabThree = TabTextPage;
}
}

View File

@ -13,7 +13,7 @@ import * as helpers from '../../helpers';
'</ion-content>',
directives: [forwardRef(() => helpers.AndroidAttribute)],
})
class TabIconTextCtrl {
class TabIconTextPage {
constructor() {
}
}
@ -29,9 +29,9 @@ class TabIconTextCtrl {
})
export class IconTextPage {
constructor() {
this.tabOne = TabIconTextCtrl;
this.tabTwo = TabIconTextCtrl;
this.tabThree = TabIconTextCtrl;
this.tabFour = TabIconTextCtrl;
this.tabOne = TabIconTextPage;
this.tabTwo = TabIconTextPage;
this.tabThree = TabIconTextPage;
this.tabFour = TabIconTextPage;
}
}

View File

@ -13,7 +13,7 @@ import * as helpers from '../../helpers';
'</ion-content>',
directives: [forwardRef(() => helpers.AndroidAttribute)],
})
class TabIconCtrl {
class TabIconPage {
constructor() {
}
}
@ -29,9 +29,9 @@ class TabIconCtrl {
})
export class IconPage {
constructor() {
this.tabOne = TabIconCtrl;
this.tabTwo = TabIconCtrl;
this.tabThree = TabIconCtrl;
this.tabFour = TabIconCtrl;
this.tabOne = TabIconPage;
this.tabTwo = TabIconPage;
this.tabThree = TabIconPage;
this.tabFour = TabIconPage;
}
}