mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
31 lines
614 B
TypeScript
31 lines
614 B
TypeScript
import {App, Page} from 'ionic/ionic';
|
|
|
|
@App({
|
|
template: '<ion-nav [root]="root"></ion-nav>'
|
|
})
|
|
class ApiDemoApp {
|
|
constructor() {
|
|
this.root = MainPage;
|
|
}
|
|
}
|
|
|
|
@Page({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class MainPage {
|
|
constructor() {
|
|
this.musicAlertOpts = {
|
|
title: '1994 Music',
|
|
subTitle: 'Select your favorite'
|
|
};
|
|
|
|
this.petOptions = [
|
|
{ text: 'Bird', value: 'bird' },
|
|
{ text: 'Cat', value: 'cat', checked: true },
|
|
{ text: 'Dog', value: 'dog', checked: true },
|
|
{ text: 'Honey Badger', value: 'honeybadger' },
|
|
{ text: 'Pig', value: 'pig' },
|
|
];
|
|
}
|
|
}
|