Skip to content

Instantly share code, notes, and snippets.

@mts88
Created November 11, 2021 19:55
Show Gist options
  • Save mts88/c481c14aabba74dab0c5a0a893de3134 to your computer and use it in GitHub Desktop.
Save mts88/c481c14aabba74dab0c5a0a893de3134 to your computer and use it in GitHub Desktop.
Feature Flag App Component
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) {}
ngOnInit(): void {
this.featureFlagService.start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment