Simple angular directive for jquery nouislider plugin
Binded data:
Data:
Binded data: from - , to -
From: , To:
bower install angular-nouislider
jquery
, angular
, nouislider
and angular-nouislider
to your code:<link rel="stylesheet" href="bower_components/nouislider/jquery.nouislider.css" />
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/nouislider/jquery.nouislider.js"></script>
<script src="bower_components/nouislider/Link.js"></script>
<script src="bower_components/angular-nouislider/src/nouislider.js"></script>
nouislider
module in your application.angular.module('MyApp', ['nouislider']);
slider
attribute to your <div>
tag:<div slider ng-model="test.single" start=1 end=10></div>
<div slider ng-from="test.from" ng-to="test.to" start=0 end=100 step=5></div>
That's it!