3a3ecabe
Imshann
init
|
1
2
3
4
5
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title></title>
|
3a3ecabe
Imshann
init
|
6
7
8
9
10
|
</head>
<body>
<div ng-app="esNgAntd" ng-controller="mainCtrl">
<div class="container" style="padding: 50px">
<es-select style="width: 200px;" on-change="handleChange(value)" placeholder="请选择...">
|
dd962f77
Imshann
优化
|
11
|
<es-select-option value="aaa" ng-repeat="value in options">{{value}}</es-select-option>
|
3a3ecabe
Imshann
init
|
12
13
14
15
16
17
18
19
20
|
</es-select>
</div>
</div>
<script src="https://cdn.staticfile.org/angular.js/1.2.28/angular.min.js"></script>
<script src="../dist/ng-antd.js"></script>
<script>
angular
.module("esNgAntd")
.controller("mainCtrl", function ($scope) {
|
dd962f77
Imshann
优化
|
21
|
$scope.options = ["AAA", "BBB"]
|
3a3ecabe
Imshann
init
|
22
23
24
25
26
27
28
|
$scope.handleChange = function(value) {
console.log("mainCtrl:value", value)
}
});
</script>
</body>
</html>
|