18 November, 2014
0 Comments
1 category
Code can be found at: http://plnkr.co/edit/wBFKg33JxG7ABIHBvtik?p=preview
Based on the code found at: http://codepen.io/iamtyce/pen/kxrhC
html template
<div class="toggle toggle-alternate {{ value }}"> <label class="{{ value }}">{{ getSwitchText() }}</label> <input ng-class="{ isChecked: value == 'off' }" type="radio" name="toggle" value="off" ng-model="value"> <input ng-class="{ isChecked: value == 'on' }" type="radio" name="toggle" value="on" ng-model="value"> <span class="switch {{ value }}"></span> </div>
Part of the code
Category: Uncategorized