1.3.0 • Published 9 years ago

xpr-angular v1.3.0

Weekly downloads
25
License
MIT
Repository
github
Last release
9 years ago

XPRMNTL

XPR-Angular.js

Bower version NPM version Downloads Tips

This is an Angular.js plugin for XPRMNTL xpr-toggle. This adds Angular directives that allow you to enable elements when a feature is turned on.

Usage

First you have to include the JS file

<script type="text/javascript" src="/xpr-angular.js"></script>

Then make sure that it's included in your app's dependencies during module creation.

angular.module('appName', [ 'xpr-angular' ]);

Then you can use them on your page

<div data-xpr-feature="expName1">This will show if and only if feature flag is enabled</div>
<div data-xpr-feature-else="expName1">This will show if and only if the feature flag is disabled</div>
1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago