diff --git a/README.md b/README.md index da4cff8..55c7b85 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ You can then add the **override** panel to your app and turn individual features The flag data that drives the feature flag service is a json format. Below is an example: ```json [ - { "key": "...", "active": "...", "name": "...", "description": "..." }, + { "key": "...", "environments": {"...": true}, "name": "...", "description": "..." }, ... ] ``` @@ -35,8 +35,8 @@ The flag data that drives the feature flag service is a json format. Below is an Unique key that is used from the markup to resolve whether a flag is active or not. - active - Boolean value for enabling/disabling the feature + environments + An object containing properties named after environment names with a true/false value for enabling/disabling the feature per environment name @@ -72,7 +72,7 @@ var myApp = angular.module('app', ['feature-flags']); myApp.config(function(featureFlagsProvider) { featureFlagsProvider.setInitialFlags([ - { "key": "...", "active": "...", "name": "...", "description": "..." }, + { "key": "...", "environments": {"...": true}, "name": "...", "description": "..." }, ]); }); ```