Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Add InjectionModule to ModalModule (#266)
Browse files Browse the repository at this point in the history
Remove InjectionModule from demo-app ModalModule
  • Loading branch information
scote authored and jfcere committed Jan 11, 2018
1 parent b0c6715 commit e5aed1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion demo-app/src/app/modal/modal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { ROUTES } from './modal.routing';
CodeSnippetModule,
CommonModule,
MzButtonModule,
MzInjectionModule,
MzModalModule,
PropertiesTableModule,
RouterModule.forChild(ROUTES),
Expand Down
2 changes: 2 additions & 0 deletions src/app/modal/modal.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { NgModule } from '@angular/core';

import { MzInjectionModule } from '../shared/injection/injection.module';
import { MzModalCloseDirective } from './modal-close';
import {
MzModalComponent,
Expand All @@ -10,6 +11,7 @@ import {
import { MzModalService } from './services';

@NgModule({
imports: [MzInjectionModule],
declarations: [
MzModalCloseDirective,
MzModalComponent,
Expand Down
3 changes: 2 additions & 1 deletion src/app/modal/services/modal.service.view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/t

import { buildComponent, MzTestWrapperComponent } from '../../shared/test-wrapper';

import { MzInjectionModule } from '../../shared/injection/injection.module';
import { MzInjectionService } from '../../shared/injection/injection.service';
import { MzBaseModal } from '../modal-base';
import { MzModalComponent } from '../modal.component';
Expand All @@ -19,13 +20,13 @@ describe('MzModalService:view', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [MzInjectionModule],
declarations: [
MzModalComponent,
MzTestModalComponent,
MzTestWrapperComponent,
],
providers: [
MzInjectionService,
MzModalService,
],
});
Expand Down

0 comments on commit e5aed1c

Please sign in to comment.