This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { FeatureFlagService } from 'src/app/shared/services/feature-flag.service'; | |
@Component({ | |
selector: 'app-image', | |
templateUrl: 'image.component.html', | |
styles: [], | |
}) | |
export class ImageComponent implements OnInit { | |
constructor(private readonly featureFlagService: FeatureFlagService) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { FeatureFlagService } from 'src/app/shared/services/feature-flag.service'; | |
@Component({ | |
selector: 'app-root', | |
template: `<router-outlet></router-outlet>`, | |
styles: [], | |
}) | |
export class AppComponent implements OnInit { | |
constructor(private readonly featureFlagService: FeatureFlagService) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { IMutableContext, UnleashClient } from 'unleash-proxy-client'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class FeatureFlagService { | |
unleash = new UnleashClient({ | |
url: `http://localhost:3000/proxy`, // url to Unleash Proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { IMutableContext, UnleashClient } from 'unleash-proxy-client'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class FeatureFlagService { | |
unleash = new UnleashClient({ | |
url: `http://localhost:3000/proxy`, // url to Unleash Proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run \ | |
-e UNLEASH_PROXY_SECRETS=my_secret_for_client \ | |
-e UNLEASH_URL=https://gitlab.com/api/v4/feature_flags/unleash/1111111 \ | |
-e UNLEASH_INSTANCE_ID=XXXXXXXX \ | |
-e UNLEASH_API_TOKEN=YYYYYY \ | |
-e UNLEASH_APP_NAME=development \ | |
-p 3000:3000 \ | |
unleashorg/unleash-proxy:0.4.0 |