summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/featureFlag/featureFlag.module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/featureFlag/featureFlag.module.ts')
-rw-r--r--vid-webpack-master/src/app/featureFlag/featureFlag.module.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/featureFlag/featureFlag.module.ts b/vid-webpack-master/src/app/featureFlag/featureFlag.module.ts
new file mode 100644
index 000000000..d22076682
--- /dev/null
+++ b/vid-webpack-master/src/app/featureFlag/featureFlag.module.ts
@@ -0,0 +1,32 @@
+import {ModuleWithProviders, NgModule} from '@angular/core';
+import {CommonModule} from '@angular/common';
+import {BrowserModule} from "@angular/platform-browser";
+import {HttpClientModule} from "@angular/common/http";
+import {FeatureFlagService} from "./service/featureFlag.service";
+import {BasicFeatureFlagDirective} from "./directive/basic/basic.featureFlag.directive";
+
+
+@NgModule({
+ imports: [
+ BrowserModule,
+ HttpClientModule,
+ CommonModule
+ ],
+ declarations: [
+ BasicFeatureFlagDirective
+ ],
+ exports: [
+ BasicFeatureFlagDirective
+ ],
+ providers: [
+ FeatureFlagService
+ ]
+})
+export class FeatureFlagModule {
+ static forRoot(): ModuleWithProviders {
+ return {
+ ngModule: FeatureFlagModule,
+ providers: []
+ };
+ }
+}