mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
chore(demos): convert to aot structure
convert to aot structure
This commit is contained in:
28
demos/src/toggle/app.component.ts
Normal file
28
demos/src/toggle/app.component.ts
Normal file
@ -0,0 +1,28 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'page.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;
|
||||
}
|
Reference in New Issue
Block a user