Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <html ng-app="app">
  <title> Featureflow Angular 1 Example </title>
  <script crossorigin="anonymous" src=""></script>

	<body ng-controller="AppController as appVm">
    <h3>Featureflow AngularJS 1.6 Example</h3>
   <p>Example feature variant is: {{appVm.featureflow.evaluate('example-feature').value()}}
  <div ng-show="appVm.featureflow.evaluate('example-feature').isOn()" class="btn btn-info" >
      The feature is on!
    <div ng-show="appVm.featureflow.evaluate('example-feature').is('red')" class="btn btn-danger" >
      The feature is red!
     <p>1. <a href="" target="_blank">Sign up for an account at</a></p>
    <p>2. Replace <code>FF_API_KEY</code> with your own SDK Key.</p>
      <p>See <a target="_new" href="">the documentation</a> for more details.</p>


  padding:25px 50px;

.input {
  width: 100%;
  padding: 10px;
  margin: 10px;

.output {
  width: 100%;
  padding: 10px 0;
  margin: 10px;




    .module('app', ['ngMaterial', 'ng-featureflow'])
    .config(function (featureflowProvider) {
	var FF_API_KEY = 'js-env-YOUR_KEY_HERE';
    //You can set the user here if you know who they are
    //For an anonymous user you can simply instantiate featureflow with no user featureflowProvider.init(FF_API_KEY);
    //when the user logs in (or changes) you can use vm.featureflow.updateUser(user); to update the user (see below for example)

    var user = {
	    key: 'bob-123',
      attributes: { 
        'name': 'John Smith', 
        'age' : 32, 
        'signup_date': '2017-03-07T02:34:13+00:00' 
	featureflowProvider.init(FF_API_KEY, user);

    .controller('AppController', AppController)
    .factory('AppService', AppService);

  AppController.$inject = ['$scope', 'AppService', 'featureflow'];
  AppService.$inject = [];

  function AppController($scope, AppService, featureflow) {
    vm = this;   
    vm.featureflow = featureflow;

  function AppService(){
    var service = {};
    return service;