index.html
1.52 KB
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
<!DOCTYPE html>
<html ng-app="myApp">
<head lang="en">
<meta charset="UTF-8">
<title></title>
<link type="text/css" rel="stylesheet" href="../spm_modules/bootstrap-css/1.0.0/bootstrap.css">
<link type="text/css" rel="stylesheet" href="../spm_modules/xn-style-common/1.1.6/xn-style-common.less">
<link type="text/css" rel="stylesheet" href="../spm_modules/xn-icon-common/1.0.6/iconfont.css">
<link type="text/css" rel="stylesheet" href="../directive/style.css">
</head>
<body ng-controller="MyController">
<div>
</div>
<div style=" width: 500px; margin: 10px auto;">
<div drag-progress ng-model="value" is-proportion="true" is-drag="true" method="show()"></div>
<!--<a href="javascript:void(0);" ng-click="show();">click me</a>-->
</div>
</body>
<script type="text/javascript" src="../spm_modules/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="../spm_modules/xn-angular/1.0.0/angular.js"></script>
<script type="text/javascript" src="../spm_modules/xn-service-method/1.0.2/service/method.js"></script>
<script type="text/javascript" src="../directive/progressbar.js"></script>
<script type="text/javascript">
(function() {
angular.module("myApp", ["xn.directive.progressbar"])
.controller("MyController", ["$scope", function($scope) {
$scope.value = 0.3;
$scope.show = function() {
console.log($scope.value);
};
}]);
})();
</script>
</html>