Files
ionic-framework/js/ext/angular/test/toggle.html
Andy Joslin 2c39a21498 feat(ionic): prefix all directives with ion-
BREAKING CHANGE: All directives are now prefixed with `ion-`.

For any directive you use, add the ionic prefix.

For example, change this HTML:

```html
<tabs>
  <tab title="home" href="/tab/home">
    <content>Hello!</content>
  </tab>
</tabs>
```

To this HTML:

```
<ion-tabs>
  <ion-tab title="home" href="/tab/home">
    <ion-content>Hello!</ion-content>
  </ion-tab>
</ion-tabs>
```
2014-02-18 16:13:00 -05:00

33 lines
1000 B
HTML

<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 has-header="true" class="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="isDisabled">Disable myModel ({{!!isDisabled}})</ion-toggle>
</div>
</div>
</ion-content>
<script>
angular.module('toggleTest', ['ionic'])
.controller('TestCtrl', function($scope) {});
</script>
</body>
</html>