Skip to content

Instantly share code, notes, and snippets.

@mschwrdtnr
Created July 3, 2019 11:31
Show Gist options
  • Save mschwrdtnr/69d09c6d69c4c3d7880462bcafe92c8f to your computer and use it in GitHub Desktop.
Save mschwrdtnr/69d09c6d69c4c3d7880462bcafe92c8f to your computer and use it in GitHub Desktop.
Feature Flag Implementation Phonebook
<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