mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(): reorganize source files
This commit is contained in:
35
test/html/toggle.html
Normal file
35
test/html/toggle.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<html ng-app="toggleTest">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Toggle</title>
|
||||
|
||||
<!-- Sets initial viewport load and disables zooming -->
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="stylesheet" href="../../../../dist/css/ionic.css">
|
||||
<script src="../../../../dist/js/ionic.bundle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="bar bar-header bar-danger">
|
||||
<h1 class="title">Toggle</h1>
|
||||
</header>
|
||||
<ion-content class="has-header reveal-animation">
|
||||
<div ng-controller="TestCtrl">
|
||||
|
||||
<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>
|
||||
</ion-content>
|
||||
|
||||
<script>
|
||||
angular.module('toggleTest', ['ionic'])
|
||||
.controller('TestCtrl', function($scope) {
|
||||
$scope.catModel = 'dogs';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user