Created
October 20, 2021 10:43
-
-
Save gparlakov/fb63633e57c49c2a42b05ed2d87f13af to your computer and use it in GitHub Desktop.
iffeatureflag initial html
This file contains hidden or 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
| <div *ngIf="myNewFeatureFlagOn$ | async">My new feature (beta)</div> |
This file contains hidden or 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
| 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