aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/featureFlag/featureFlag.module.ts
blob: d22076682b1b17a97aa5a9fa615129935a8e38b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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: []
    };
  }
}