Socket
Socket
Sign inDemoInstall

angular-suite-flipper

Package Overview
Dependencies
3
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-suite-flipper

Angular Suite Flipper


Version published
Maintainers
3
Install size
28.7 kB
Created

Readme

Source

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 }}")
  | flipper is On

.div(ng-show="{{ 'self_service_dashboard_ignore_revenue' | flipperIsOff }}")
  | flipper is Off

FAQs

Last updated on 18 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc