Skip to content

Instantly share code, notes, and snippets.

@gparlakov
Created October 20, 2021 10:43
Show Gist options
  • Select an option

  • Save gparlakov/fb63633e57c49c2a42b05ed2d87f13af to your computer and use it in GitHub Desktop.

Select an option

Save gparlakov/fb63633e57c49c2a42b05ed2d87f13af to your computer and use it in GitHub Desktop.
iffeatureflag initial html
<div *ngIf="myNewFeatureFlagOn$ | async">My new feature (beta)</div>
export class CoolComponent {
myNewFeatureFlagOn$: Observable<boolean>;
constructor(featureFlags: FeatureFlagsService) {
this.myNewFeatureFlagOn$ = featureFlags.checkIsOn('MyNewFeature');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment