Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.09 KB | None | 0 0
  1. home.ts
  2.  
  3. import { Component } from '@angular/core';
  4. import { NavController } from 'ionic-angular';
  5. import { FixedPage } from '../fixed/fixed';
  6. import { FloatingPage } from '../floating/floating';
  7. import { InlinePage } from '../inline/inline';
  8. import { InsetPage } from '../inset/inset';
  9. import { PlaceholderPage } from '../placeholder/placeholder';
  10. import { StackedPage } from '../stacked/stacked';
  11.  
  12. @Component({
  13. selector: 'page-home',
  14. templateUrl: 'home.html'
  15. })
  16. export class HomePage {
  17.  
  18. constructor(public navCtrl: NavController) {
  19.  
  20. }
  21.  
  22. inFixed(){
  23. this.navCtrl.push(FixedPage);
  24. }
  25.  
  26. inFloating(){
  27. this.navCtrl.push(FloatingPage);
  28. }
  29.  
  30. inInline(){
  31. this.navCtrl.push(InlinePage);
  32. }
  33.  
  34. inInset(){
  35. this.navCtrl.push(InsetPage);
  36. }
  37.  
  38. inPlaceholder(){
  39. this.navCtrl.push(PlaceholderPage);
  40. }
  41.  
  42. inStacked(){
  43. this.navCtrl.push(StackedPage);
  44. }
  45.  
  46. }
  47.  
  48. ---------------------------------------
  49.  
  50. import { BrowserModule } from '@angular/platform-browser';
  51. import { ErrorHandler, NgModule } from '@angular/core';
  52. import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
  53. import { SplashScreen } from '@ionic-native/splash-screen';
  54. import { StatusBar } from '@ionic-native/status-bar';
  55.  
  56. import { MyApp } from './app.component';
  57. import { HomePage } from '../pages/home/home';
  58. import { FixedPage } from '../pages/fixed/fixed';
  59. import { InlinePage } from '../pages/inline/inline';
  60. import { InsetPage } from '../pages/inset/inset';
  61. import { StackedPage } from '../pages/stacked/stacked';
  62. import { PlaceholderPage } from '../pages/placeholder/placeholder';
  63. import { FloatingPage } from '../pages/floating/floating';
  64.  
  65. @NgModule({
  66. declarations: [
  67. MyApp,
  68. HomePage,
  69. FixedPage,
  70. InlinePage,
  71. InsetPage,
  72. StackedPage,
  73. PlaceholderPage,
  74. FloatingPage
  75. ],
  76. imports: [
  77. BrowserModule,
  78. IonicModule.forRoot(MyApp)
  79. ],
  80. bootstrap: [IonicApp],
  81. entryComponents: [
  82. MyApp,
  83. HomePage,
  84. FixedPage,
  85. InlinePage,
  86. InsetPage,
  87. StackedPage,
  88. PlaceholderPage,
  89. FloatingPage
  90. ],
  91. providers: [
  92. StatusBar,
  93. SplashScreen,
  94. {provide: ErrorHandler, useClass: IonicErrorHandler}
  95. ]
  96. })
  97. export class AppModule {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement