File tree Expand file tree Collapse file tree 2 files changed +36
-6
lines changed Expand file tree Collapse file tree 2 files changed +36
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { NgModule } from '@angular/core' ;
2
+ import { RouterModule , Routes } from '@angular/router' ;
3
+ import { HomePage } from './home.page' ;
4
+
5
+ const routes : Routes = [
6
+ {
7
+ path : '' ,
8
+ component : HomePage ,
9
+ }
10
+ ] ;
11
+
12
+ @NgModule ( {
13
+ imports : [ RouterModule . forChild ( routes ) ] ,
14
+ exports : [ RouterModule ]
15
+ } )
16
+ export class HomePageRoutingModule { }
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
+ import { CommonModule } from '@angular/common' ;
2
3
import { IonicModule } from '@ionic/angular' ;
3
- import { IonicHeaderParallaxModule } from 'ionic-header-parallax'
4
+ import { FormsModule } from '@angular/forms' ;
5
+ import { RouterModule } from '@angular/router' ;
4
6
import { HomePage } from './home.page' ;
7
+ import { IonicHeaderParallaxModule } from 'ionic-header-parallax' ;
8
+
9
+ // This module is kept to test backward compatibility with Angular projects
10
+ // that do not use standalone components.
5
11
6
12
@NgModule ( {
7
13
declarations : [ HomePage ] ,
8
- imports : [ IonicHeaderParallaxModule , IonicModule ] ,
9
- exports : [ HomePage ] ,
14
+ imports : [
15
+ CommonModule ,
16
+ FormsModule ,
17
+ IonicModule ,
18
+ RouterModule . forChild ( [
19
+ {
20
+ path : '' ,
21
+ component : HomePage
22
+ }
23
+ ] ) ,
24
+ IonicHeaderParallaxModule
25
+ ]
10
26
} )
11
- export class HomePageModule {
12
- constructor ( ) { }
13
- }
27
+ export class HomePageModule { }
You can’t perform that action at this time.
0 commit comments