refactor(app): remove shared module, export dependencies through

This commit is contained in:
Dmitry Nehaychik 2017-08-04 19:27:16 +03:00
parent b5666805bf
commit 3880ab3d74
13 changed files with 27 additions and 86 deletions

View file

@ -1,6 +1,7 @@
import { ModuleWithProviders, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import {
NbActionsModule,
@ -13,6 +14,7 @@ import {
NbTabsetModule,
NbThemeModule,
NbUserModule,
NbCheckboxModule,
} from '@nebular/theme';
import {
@ -44,6 +46,8 @@ const NB_MODULES = [
NbActionsModule,
NbSearchModule,
NbSidebarModule,
NbCheckboxModule,
NgbModule,
];
const COMPONENTS = [
@ -65,7 +69,7 @@ const NB_THEME_PROVIDERS = [
{
name: 'default',
},
[DEFAULT_THEME, COSMIC_THEME],
[ DEFAULT_THEME, COSMIC_THEME ],
).providers,
...NbSidebarModule.forRoot().providers,
...NbMenuModule.forRoot().providers,