Files
ionic-framework/demos/title/AppModule.ts
2016-09-13 14:54:22 -05:00

37 lines
715 B
TypeScript

import { Component, NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
// Use the toolbar demo but pass in the demo name to change the title
// this will also hide some of the toolbars that don't use `ion-title`
@Component({
templateUrl: '../toolbar/main.html'
})
export class ApiDemoPage {
demo = "Title";
favorites = "recent";
apps = "free";
}
@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 {}