forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.ts
More file actions
52 lines (42 loc) · 974 Bytes
/
app.component.ts
File metadata and controls
52 lines (42 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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;
}