From c6ad4da7b9158fc1ce25d2f3093c92f12c338ef9 Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Wed, 17 Jun 2020 19:05:39 +0300 Subject: [PATCH] feat: use route provider and make all config public --- .../account/config/src/account-config.module.ts | 12 ++++++++++++ .../packages/account/config/src/public-api.ts | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 npm/ng-packs/packages/account/config/src/account-config.module.ts create mode 100644 npm/ng-packs/packages/account/config/src/public-api.ts diff --git a/npm/ng-packs/packages/account/config/src/account-config.module.ts b/npm/ng-packs/packages/account/config/src/account-config.module.ts new file mode 100644 index 0000000000..60b2f8a6ef --- /dev/null +++ b/npm/ng-packs/packages/account/config/src/account-config.module.ts @@ -0,0 +1,12 @@ +import { ModuleWithProviders, NgModule } from '@angular/core'; +import { ACCOUNT_ROUTE_PROVIDERS } from './providers/route.provider'; + +@NgModule() +export class AccountConfigModule { + static forRoot(): ModuleWithProviders { + return { + ngModule: AccountConfigModule, + providers: [ACCOUNT_ROUTE_PROVIDERS], + }; + } +} diff --git a/npm/ng-packs/packages/account/config/src/public-api.ts b/npm/ng-packs/packages/account/config/src/public-api.ts new file mode 100644 index 0000000000..cb4f854a64 --- /dev/null +++ b/npm/ng-packs/packages/account/config/src/public-api.ts @@ -0,0 +1,3 @@ +export * from './account-config.module'; +export * from './enums'; +export * from './providers';