mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Draggable slider working
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user