Files
Brandy Carney 45e37ceb29 test(e2e): update all e2e tests to use a local path to ionic
this lets type errors to show up during development

closes #6366
2016-04-29 15:34:56 -04:00

32 lines
541 B
TypeScript

import {App} from '../../../../../ionic';
@App({
templateUrl: 'main.html'
})
class E2EApp {
constructor() {
this.homeIcon = 'home';
this.isActive = false;
this.iconIndex = 0;
this.icons = [
'home',
'star',
'ios-alert',
'ios-alert-outline',
'md-alert',
'logo-apple'
];
this.btnIcon = this.icons[0];
}
updateIcon() {
this.iconIndex++;
if (this.iconIndex >= this.icons.length) {
this.iconIndex = 0;
}
this.btnIcon = this.icons[this.iconIndex];
}
}