forked from brybott/ionic-ion-drawer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
58 lines (58 loc) · 1.56 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Ionic Seed App</title>
<link href="http://code.ionicframework.com/1.0.0-beta.14/css/ionic.css" rel="stylesheet">
<link rel="stylesheet" href="ionic.contrib.drawer.css">
<!-- angularjs scripts -->
<script src="http://code.ionicframework.com/1.0.0-beta.14/js/ionic.bundle.js"></script>
<script src="ionic.contrib.drawer.js"></script>
<style>
drawer {
background-color: #222;
}
drawer h2 {
color: #fff;
margin-top: 40px !important;
margin-left: 15px;
font-weight: 200;
}
.item {
background: none;
color: #fff;
}
.item:first-child {
border-top: 0px;
}
.item:last-child {
border-bottom: 0px;
}
</style>
</head>
<!--
'starter' is the name of this angular module (js/app.js)
-->
<body ng-app="app">
<drawer side="left">
<ion-content>
<h2>Menu</h2>
<button ng-click="closeDrawer()">Close</button>
<ion-list>
<ion-item>Friends</ion-item>
<ion-item>Favorites</ion-item>
<ion-item>Search</ion-item>
</ion-list>
</ion-content>
</drawer>
<ion-pane>
<ion-content>
<button ng-click="openDrawer()">Open</button>
</ion-content>
</ion-pane>
<script>
angular.module('app', ['ionic.contrib.drawer', 'ionic']);
</script>
</body>
</html>