import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { RouterModule } from '@angular/router' ; import { NgbModule } from '@ng-bootstrap/ng-bootstrap' ; import { IconsModule } from '@modules/icons/icons.module' ; const thirdParty = [ IconsModule , NgbModule ] ; import * as appCommonContainers from './containers' ; import * as appCommonComponents from './components' ; import * as appCommonGuards from './guards' ; import * as appCommonServices from './services' ; import * as authServices from '@modules/auth/services' ; @ NgModule ( { imports : [ CommonModule , RouterModule , ... thirdParty ] , providers : [ ... appCommonServices . services , ... authServices . services , ... appCommonGuards . guards ] , declarations : [ ... appCommonContainers . containers , ... appCommonComponents . components ] , exports : [ ... appCommonContainers . containers , ... appCommonComponents . components , ... thirdParty ] , } ) export class AppCommonModule { }