blob: d22076682b1b17a97aa5a9fa615129935a8e38b5 [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001import {ModuleWithProviders, NgModule} from '@angular/core';
2import {CommonModule} from '@angular/common';
3import {BrowserModule} from "@angular/platform-browser";
4import {HttpClientModule} from "@angular/common/http";
5import {FeatureFlagService} from "./service/featureFlag.service";
6import {BasicFeatureFlagDirective} from "./directive/basic/basic.featureFlag.directive";
7
8
9@NgModule({
10 imports: [
11 BrowserModule,
12 HttpClientModule,
13 CommonModule
14 ],
15 declarations: [
16 BasicFeatureFlagDirective
17 ],
18 exports: [
19 BasicFeatureFlagDirective
20 ],
21 providers: [
22 FeatureFlagService
23 ]
24})
25export class FeatureFlagModule {
26 static forRoot(): ModuleWithProviders {
27 return {
28 ngModule: FeatureFlagModule,
29 providers: []
30 };
31 }
32}