-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (57 loc) · 1.94 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
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<title>AngularJS - UI Router - Example 1</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
<link href="app.css" rel="stylesheet" type="text/css">
</head>
<body ng-app="DemoApp">
<div ng-controller="DemoController">
<header>
<h1>AngularJS && UI.Router</h1>
<h2>Example 1: Transition between state</h2>
</header>
<nav>
<ul>
<li>
<a href="#" title="left"
ng-class="{'active':transition=='slide-left'}" ng-click="left()">
Left
</a>
</li>
<li>
<a href="#" title="right"
ng-class="{'active':transition=='slide-right'}" ng-click="right()">
Right
</a>
</li>
<li>
<a href="#" title="top"
ng-class="{'active':transition=='slide-top'}" ng-click="top()">
Top
</a>
</li>
<li>
<a href="#" title="bottom"
ng-class="{'active':transition=='slide-bottom'}" ng-click="bottom()">
Bottom
</a>
</li>
</ul>
</nav>
<div class="content">
<div ui-view ng-class="transition">
default content
</div>
</div>
</div>
<script data-require="[email protected]" data-semver="1.2.10"
src="http://code.angularjs.org/1.2.10/angular.min.js"></script>
<script data-require="[email protected]" data-semver="1.2.11"
src="http://code.angularjs.org/1.2.11/angular-animate.min.js"></script>
<script src="http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js"></script>
<script src="app.js"></script>
</body>
</html>