-
-
Save mschwrdtnr/69d09c6d69c4c3d7880462bcafe92c8f to your computer and use it in GitHub Desktop.
Feature Flag Implementation Phonebook
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
<div *ngIf=""> <!-- TODO: Check-if there are featureFlags -> add a function in .component.ts --> | |
<h2> | |
<mat-icon>flag</mat-icon> | |
<span i18n="SettingsComponent|Feature Flag Subtitle@@SettingsComponentSubTitleFeatureFlag"> | |
Feature Flags | |
</span> | |
</h2> | |
<mat-list> | |
<mat-list-item *ngFor="let flag of (featureFlags | async)"> | |
<mat-slide-toggle [checked]="flag.value" color="primary" | |
(change)="changeFeatureFlag($event, flag.name)"> | |
{{flag.name}} | |
</mat-slide-toggle> | |
</mat-list-item> | |
</mat-list> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment