<commit_before># angular-suite-flipper

Install
---------

    npm install --save angular-suite-flipper
    
    
Usage
---------

    require('angular-suite-flipper')(angular);
    angular.module('your-app', [
      'suiteFlipper'
    ]);


Service
---------
  
    myApp.controller('GreetingController', ['$scope', 'flipper', function($scope, flipper) {
      $scope.reload = function() {
        if (flipper.isOn('yourFlipperName')) {
          // do something
        } else {
          // do something else
        }
      };
    }]);

Filter
---------

    .div(ng-show="{{ 'self_service_dashboard_ignore_revenue' | flipperIsOn }}")<commit_msg>update readme with the configuration<commit_after># angular-suite-flipper

Install
---------

    npm install --save angular-suite-flipper
    
    
Usage
---------

    require('angular-suite-flipper')(angular);
    
    var myApp = angular
      .module('your-app', ['suiteFlipper'])
      .config(['flipperProvider', (flipperProvider) => {
        flipperProvider.setFlippers(['dummy', 'otherDummy']);
      }]);

Service
---------
  
    myApp.controller('GreetingController', ['$scope', 'flipper', function($scope, flipper) {
      $scope.reload = function() {
        if (flipper.isOn('yourFlipperName')) {
          // do something
        } else {
          // do something else
        }
      };
      
      $scope.someThing = function() {
        if (flipper.isOff('yourFlipperName')) {
          // do something
        } else {
          // do something else
        }
      };
    }]);

Filter
---------

    .div(ng-show="{{ 'self_service_dashboard_ignore_revenue' | flipperIsOn }}")
{'fraction_non_alphanumeric': 0.18253486961795026, 'fraction_numerical': 0.0, 'mean_word_length': 1.9891304347826086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6731834', 'n_tokens_mistral': 495, 'n_tokens_neox': 509, 'n_words': 83}