Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-suite-flipper

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-suite-flipper

Angular Suite Flipper

  • 3.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
3
Weekly downloads
 
Created
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

Package last updated on 18 Dec 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc