import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { HomeComponent } from './home.component'; import { NameListService } from '../name-list/name-list.service'; import { SharedModule } from '../shared/shared.barrel.module'; @NgModule({ imports: [ CommonModule, SharedModule ], declarations: [HomeComponent], exports: [HomeComponent], providers: [ NameListService ] }) export class HomeModule { }