Files
ionic-framework/demos/src/select/app.component.ts
Dan Bucholtz c7ce93d9fe chore(demos): convert to aot structure
convert to aot structure
2016-09-16 10:58:35 -05:00

53 lines
974 B
TypeScript

import { Component } from '@angular/core';
@Component({
templateUrl: 'page.html'
})
export class ApiDemoPage {
gender: string;
gaming: string;
toppings: Array<string>;
petAlertOpts;
petData;
pets: Array<string>;
notifications: string = 'mute_1';
rating: number = 2;
constructor() {
this.gender = 'f';
this.gaming = 'n64';
this.petAlertOpts = {
title: 'Like Pets?',
subTitle: 'Select your favorite'
};
this.toppings = ['bacon', 'xcheese'];
this.petData = [
{ text: 'Bird', value: 'bird' },
{ text: 'Cat', value: 'cat' },
{ text: 'Dog', value: 'dog' },
{ text: 'Honey Badger', value: 'honeybadger' },
];
this.pets = ['cat', 'dog'];
}
monthChange(val) {
console.log('Month Change:', val);
}
yearChange(val) {
console.log('Year Change:', val);
}
}
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
export class ApiDemoApp {
root = ApiDemoPage;
}