0 Comments

Code can be found at: http://plnkr.co/edit/wBFKg33JxG7ABIHBvtik?p=preview

 

image

 

 

 

image

 

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

image

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts