On load of the app, you are provided a button that asks if you want to calculate your age. When clicked, it sends a status request to ConfigCat for that feature. If the calculateUserAgeFeature flag is toggled on the configCat dashboard, the feature is enabled for use and an input field appears for a user to calculate their age based on birth year. But if the feature flag is toggled off, a message is displayed telling the user that the feature is currently disabled by the admin.
This app is a companion application for the How To Use Feature Flags in Vue.JS blogpost.
npm install
npm run serve
npm run build
npm run lint
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 Twitter, Facebook, LinkedIn, and GitHub.
Contributions are welcome!