File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ const appRoutes: Routes = [
8
8
{ path : 'welcome' , component : WelcomeComponent }
9
9
] ;
10
10
11
- export const routing : ModuleWithProviders = RouterModule . forRoot ( appRoutes ) ;
11
+ export const routing : ModuleWithProviders =
12
+ RouterModule . forRoot ( appRoutes ) ;
Original file line number Diff line number Diff line change 1
- // #docregion
2
1
import { NgModule } from '@angular/core' ;
3
2
import { CommonModule } from '@angular/common' ;
4
3
import { FormsModule } from '@angular/forms' ;
5
4
5
+ import { productRouting } from './product.routing' ;
6
6
import { ProductListComponent } from './product-list.component' ;
7
7
import { ProductDetailComponent } from './product-detail.component' ;
8
-
9
8
import { ProductFilterPipe } from './product-filter.pipe' ;
10
9
import { ProductService } from './product.service' ;
11
- import { productRouting } from './product.routing' ;
12
10
13
11
import { SharedModule } from '../shared/shared.module' ;
14
12
15
13
@NgModule ( {
16
14
imports : [
17
15
CommonModule ,
18
- SharedModule ,
19
16
FormsModule ,
17
+ SharedModule ,
20
18
productRouting
21
19
] ,
22
20
declarations : [
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ export const productRoutes: Routes = [
9
9
{ path : 'product/:id' , component : ProductDetailComponent }
10
10
] ;
11
11
12
- export const productRouting : ModuleWithProviders = RouterModule . forChild ( productRoutes ) ;
12
+ export const productRouting : ModuleWithProviders =
13
+ RouterModule . forChild ( productRoutes ) ;
You can’t perform that action at this time.
0 commit comments