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', destructiveText: 'Delete',
titleText: 'Albums', titleText: 'Albums',
cancelText: 'Cancel', cancelText: 'Cancel',
cancel: function() { cancel: () => {
console.log('Canceled'); console.log('Canceled');
}, },
destructiveButtonClicked: () => { destructiveButtonClicked: () => {
console.log('Destructive clicked'); console.log('Destructive clicked');
}, },
buttonClicked: function(index) { buttonClicked: (index) => {
console.log('Button clicked', index); console.log('Button clicked', index);
if (index == 1) { return false; } if (index == 1) { return false; }
return true; return true;

View File

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

View File

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

View File

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