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

@emartech/angular-suite-flipper

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emartech/angular-suite-flipper

Angular module for Suite FLipper

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-54%
Maintainers
1
Weekly downloads
 
Created
Source

Angular2 Suite Flipper

This is a simple flipper solution for angular2. You should provide the flippers.

Install

npm install --save angular2-suite-flipper

Setup

provide flippers in your bootstrap


provide('flippers', { useValue: ['dummy', 'test'] });

Usage in template


import { IsOnPipe } from 'angular2-suite-flipper';
import { IsOffPipe } from 'angular2-suite-flipper';

@Component({
  selector: '<sub-app>',
  pipes: [IsOnPipe, IsOffPipe],
  template: `
    <h1 *ngIf="'dummy' | isOff">With</h1>
    <h1 *ngIf="'dummy' | isOn">Without</h1>
  `
})
export class App {}

Usage in Controller


import { FlipperService } from 'angular2-suite-flipper';

@Component({
  selector: '<sub-app>',
  template: `Some content`
})
export class App {

  constructor(flipperService: FlipperService) {
    if (flipperService.isOn('dummy')) console.log(1);
    if (flipperService.isOff('dummy')) console.log(2);
  }
}

Keywords

FAQs

Package last updated on 19 Nov 2016

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