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