Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- home.ts
- import { Component } from '@angular/core';
- import { NavController } from 'ionic-angular';
- import { FixedPage } from '../fixed/fixed';
- import { FloatingPage } from '../floating/floating';
- import { InlinePage } from '../inline/inline';
- import { InsetPage } from '../inset/inset';
- import { PlaceholderPage } from '../placeholder/placeholder';
- import { StackedPage } from '../stacked/stacked';
- @Component({
- selector: 'page-home',
- templateUrl: 'home.html'
- })
- export class HomePage {
- constructor(public navCtrl: NavController) {
- }
- inFixed(){
- this.navCtrl.push(FixedPage);
- }
- inFloating(){
- this.navCtrl.push(FloatingPage);
- }
- inInline(){
- this.navCtrl.push(InlinePage);
- }
- inInset(){
- this.navCtrl.push(InsetPage);
- }
- inPlaceholder(){
- this.navCtrl.push(PlaceholderPage);
- }
- inStacked(){
- this.navCtrl.push(StackedPage);
- }
- }
- ---------------------------------------
- import { BrowserModule } from '@angular/platform-browser';
- import { ErrorHandler, NgModule } from '@angular/core';
- import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
- import { SplashScreen } from '@ionic-native/splash-screen';
- import { StatusBar } from '@ionic-native/status-bar';
- import { MyApp } from './app.component';
- import { HomePage } from '../pages/home/home';
- import { FixedPage } from '../pages/fixed/fixed';
- import { InlinePage } from '../pages/inline/inline';
- import { InsetPage } from '../pages/inset/inset';
- import { StackedPage } from '../pages/stacked/stacked';
- import { PlaceholderPage } from '../pages/placeholder/placeholder';
- import { FloatingPage } from '../pages/floating/floating';
- @NgModule({
- declarations: [
- MyApp,
- HomePage,
- FixedPage,
- InlinePage,
- InsetPage,
- StackedPage,
- PlaceholderPage,
- FloatingPage
- ],
- imports: [
- BrowserModule,
- IonicModule.forRoot(MyApp)
- ],
- bootstrap: [IonicApp],
- entryComponents: [
- MyApp,
- HomePage,
- FixedPage,
- InlinePage,
- InsetPage,
- StackedPage,
- PlaceholderPage,
- FloatingPage
- ],
- providers: [
- StatusBar,
- SplashScreen,
- {provide: ErrorHandler, useClass: IonicErrorHandler}
- ]
- })
- export class AppModule {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement