mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
40 lines
679 B
TypeScript
40 lines
679 B
TypeScript
import { Component, NgModule } from '@angular/core';
|
|
import { IonicModule } from 'ionic-angular';
|
|
|
|
@Component({
|
|
templateUrl: 'main.html'
|
|
})
|
|
export class ApiDemoPage {
|
|
brightness: number = 20;
|
|
saturation: number = 0;
|
|
warmth: number = 1300;
|
|
structure: any = {lower: 33, upper: 60};
|
|
|
|
onChange(ev) {
|
|
console.log("Changed", ev);
|
|
}
|
|
}
|
|
|
|
|
|
@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 {}
|