Skip to content

Commit

Permalink
feat(modules): updated imports and exports to only use MaterialModule…
Browse files Browse the repository at this point in the history
… in SharedModule
  • Loading branch information
Ismaestro committed Jul 17, 2017
1 parent fa35385 commit ea778a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {HeroesModule} from './heroes/heroes.module';

import {AppComponent} from './app.component';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {MaterialModule} from './core/material.module';

@NgModule({
imports: [
Expand All @@ -30,8 +29,7 @@ import {MaterialModule} from './core/material.module';
AppRoutingModule,
CoreModule,
HeroesModule,
SharedModule,
MaterialModule
SharedModule
],
declarations: [
AppComponent
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {HeroRoutingModule} from '../heroes/heroes-routing.module';

import {NavComponent} from './nav/nav.component';
import {FooterComponent} from './footer/footer.component';
import {MaterialModule} from './material.module';
import {SharedModule} from '../shared/modules/shared.module';


@NgModule({
Expand All @@ -27,7 +27,7 @@ import {MaterialModule} from './material.module';
useFactory: TranslateLoaderFactory,
deps: [Http]
}),
MaterialModule
SharedModule
],
exports: [
NavComponent,
Expand Down
4 changes: 1 addition & 3 deletions src/app/heroes/heroes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {HeroListComponent, RemoveHeroDialogComponent} from './hero-list/hero-lis
import {HeroSearchComponent} from './hero-search/hero-search.component';

import {HeroService} from './shared/hero.service';
import {MaterialModule} from '../core/material.module';
import {HeroTopComponent} from './hero-top/hero-top.component';

@NgModule({
Expand All @@ -26,8 +25,7 @@ import {HeroTopComponent} from './hero-top/hero-top.component';
}),
SharedModule,
HeroRoutingModule,
ReactiveFormsModule,
MaterialModule
ReactiveFormsModule
],
declarations: [
HeroListComponent,
Expand Down
3 changes: 2 additions & 1 deletion src/app/shared/modules/shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {NgModule} from '@angular/core';

import {ProgressBarService} from '../services/progress-bar.service';
import {MaterialModule} from '../../core/material.module';

@NgModule({
declarations: [],
exports: [],
exports: [MaterialModule],
providers: [ProgressBarService]
})

Expand Down

0 comments on commit ea778a4

Please sign in to comment.