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

angular2-feature-toggle

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-feature-toggle

Your module to handle with feature toggles in Angular2 applications easier.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Angular2 FeatureToggle

Build Status

Coverage Status

Your module to handle with feature toggles in Angular2 applications easier.

Instalation and usage

Install angular2-feature-toggle module as a project dependency.

$ npm install --save angular2-feature-toggle

After that you just need to import the FeatureToggleModule into your application and the directive will be accessible in your application.

import { FeatureToggleModule } from 'angular2-feature-toggle';
...
@NgModule({
  ...
  imports: [ FeatureToggleModule ],
  ...
})
...

<div *featureToggle="true">
  condition is true and `featureToggle` is enabled.
</div>
<div *featureToggle="false">
  condition is false and `featureToggle` is disabled.
</div>

Running unit tests

Run npm test to execute the unit tests via Karma.

Running the build

Run npm run build

How to contribute

This package is using the AngularJS commit messages as default way to contribute with commitizen node package integrated in this repository. If you are not so familiar with the Angular projeto commit messages standard, please commit your contribution using:

$ npm run commit

Live example

https://plnkr.co/edit/RepjOclLXM32YbCgC4vv

Author

Wilson Mendes (willmendesneto)

FAQs

Package last updated on 21 Oct 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