Skip to content

Commit cd68100

Browse files
authored
Fix Minor formatting
Fix Minor formatting
2 parents 6cfbf3b + c44f525 commit cd68100

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

APM - Final Updated/app/app.module.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { HttpModule } from '@angular/http';
44

5-
import { AppComponent } from './app.component';
65
import { routing } from './app.routing';
6+
import { AppComponent } from './app.component';
77
import { WelcomeComponent } from './home/welcome.component';
88

99
/* Feature Modules */
@@ -16,7 +16,10 @@ import { ProductModule } from './products/product.module';
1616
routing,
1717
ProductModule
1818
],
19-
declarations: [ AppComponent, WelcomeComponent ],
19+
declarations: [
20+
AppComponent,
21+
WelcomeComponent
22+
],
2023
bootstrap: [ AppComponent ]
2124
})
2225
export class AppModule { }

APM - Final Updated/app/app.routing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
44
import { WelcomeComponent } from './home/welcome.component';
55

66
const appRoutes: Routes = [
7-
{ path: '', redirectTo: '/welcome', pathMatch: 'full'},
7+
{ path: '', redirectTo: 'welcome', pathMatch: 'full'},
88
{ path: 'welcome', component: WelcomeComponent }
99
];
1010

APM - Final Updated/app/products/product.module.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
// #docregion
21
import { NgModule } from '@angular/core';
3-
import { CommonModule } from '@angular/common';
42
import { FormsModule } from '@angular/forms';
53

4+
import { SharedModule } from '../shared/shared.module';
5+
6+
import { productRouting } from './product.routing';
67
import { ProductListComponent } from './product-list.component';
78
import { ProductDetailComponent } from './product-detail.component';
8-
99
import { ProductFilterPipe } from './product-filter.pipe';
1010
import { ProductService } from './product.service';
11-
import { productRouting } from './product.routing';
12-
13-
import { SharedModule } from '../shared/shared.module';
1411

1512
@NgModule({
1613
imports: [
17-
CommonModule,
18-
SharedModule,
1914
FormsModule,
15+
SharedModule,
2016
productRouting
2117
],
2218
declarations: [

APM - Final Updated/app/products/product.routing.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ export const productRoutes: Routes = [
99
{ path: 'product/:id', component: ProductDetailComponent }
1010
];
1111

12-
export const productRouting: ModuleWithProviders = RouterModule.forChild(productRoutes);
12+
export const productRouting: ModuleWithProviders =
13+
RouterModule.forChild(productRoutes);

APM - Final Updated/app/shared/shared.module.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import { CommonModule } from '@angular/common';
44
import { StarComponent } from './star.component';
55

66
@NgModule({
7-
imports: [ CommonModule],
8-
exports : [ StarComponent ],
7+
imports: [ CommonModule ],
8+
exports : [
9+
CommonModule,
10+
StarComponent
11+
],
912
declarations: [ StarComponent ],
1013
})
1114
export class SharedModule { }

0 commit comments

Comments
 (0)