mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
45 lines
722 B
TypeScript
45 lines
722 B
TypeScript
import { Component, NgModule } from '@angular/core';
|
|
import { IonicModule } from 'ionic-angular';
|
|
|
|
@Component({
|
|
templateUrl: 'main.html'
|
|
})
|
|
export class ApiDemoPage {
|
|
data = {
|
|
frodo: true,
|
|
sam: false,
|
|
eowyn: true,
|
|
legolas: true,
|
|
gimli: false,
|
|
saruman: true,
|
|
gandalf: true,
|
|
arwen: false,
|
|
boromir: false,
|
|
gollum: true,
|
|
galadriel: false
|
|
};
|
|
}
|
|
|
|
|
|
@Component({
|
|
template: '<ion-nav [root]="root"></ion-nav>'
|
|
})
|
|
export class ApiDemoApp {
|
|
root = ApiDemoPage;
|
|
}
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
ApiDemoApp,
|
|
ApiDemoPage
|
|
],
|
|
imports: [
|
|
IonicModule.forRoot(ApiDemoApp)
|
|
],
|
|
bootstrap: [IonicApp],
|
|
entryComponents: [
|
|
ApiDemoPage
|
|
]
|
|
})
|
|
export class AppModule {}
|