Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 857 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 857 Bytes

angular-radios-to-slider

Bower version

angular module for https://github.com/rubentd/radios-to-slider

Installation

bower install angular-radios-to-slider --save

Usage

add "radio.slider" to your modules and start using the directive.

Example

<html ng-app="app">
<body ng-controller="Controller as vm">
<radio-slider values="vm.values" ng-model="vm.options"></radio-slider>
</body>
</html>

<script>
angular.module('app', ['radio.slider']).controller('Controller', Controller);

function Controller() {
	var vm = this;

	vm.options = 'option4';

	vm.values = {
		'option1': '1 years',
		'option2': '2 years',
		'option3': '3 years',
		'option4': '4 years',
		'option5': '5+ years'
	};
}
</script>