Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
angular2-feature-toggle
Advanced tools
Your module to handle with feature toggles in Angular2 applications easier.
Your module to handle with feature toggles in Angular2 applications easier.
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>
Run npm test
to execute the unit tests via Karma.
Run npm run build
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
https://plnkr.co/edit/RepjOclLXM32YbCgC4vv
Wilson Mendes (willmendesneto)
FAQs
Your module to handle with feature toggles in Angular2 applications easier.
The npm package angular2-feature-toggle receives a total of 0 weekly downloads. As such, angular2-feature-toggle popularity was classified as not popular.
We found that angular2-feature-toggle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.