Draggable slider working

This commit is contained in:
Max Lynch
2014-03-01 15:52:47 -06:00
parent a0d60d5228
commit e538fa77c9
5 changed files with 141 additions and 33 deletions

View File

@@ -18,6 +18,7 @@
<div class="list">
<ion-toggle ng-model="myModel" ng-disabled="isDisabled">myModel ({{!!myModel}})</ion-toggle>
<ion-toggle ng-model="catModel" ng-disabled="isDisabled" ng-true-value="cats" ng-false-value="dogs">Cats or dogs? ({{catModel}})</ion-toggle>
<ion-toggle ng-model="isDisabled">Disable myModel ({{!!isDisabled}})</ion-toggle>
</div>
</div>
@@ -25,7 +26,9 @@
<script>
angular.module('toggleTest', ['ionic'])
.controller('TestCtrl', function($scope) {});
.controller('TestCtrl', function($scope) {
$scope.catModel = 'dogs';
});
</script>
</body>
</html>