Using Feature Flags in an Angular Application
January 9, 2026 ยท View on GitHub
The app is a simple page that allows users to vote on a photo by assigning a number from 1 to 10. Using ConfigCat's feature flag services, the application uses a feature flag to enable or disable the voting feature. When disabled, a message will show that voting is disabled.
Build & Run
Prerequisites
- Node.js and node package manager
- Basic knowledge of HTML, CSS, and JavaScript
- A code editor installed - For example: Visual Studio Code
Build and Run
- Clone this repository:
git clone git@github.com:configcat-labs/feature-flags-in-angular-sample-app.git
- Open a terminal at the root of the cloned repository and install the dependencies:
npm i
-
Add your ConfigCat SDK and feature flag key to
src/app/configcat.service.ts. -
Launch the app in your browser with:
npm run start
Learn more
Useful links to technical resources.
ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here.
You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.
Keep up with ConfigCat on X, Facebook, LinkedIn, and GitHub.
Author
Contributions
Contributions are welcome!