3a3ecabe
Imshann
init
|
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
|
</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) {
$scope.tags = [{
id: 1,
label: "tag1",
checked: false,
}, {
id: 2,
label: "tag2",
checked: true,
}]
$scope.handleChange = function (checked, key) {
console.log(checked, key);
$scope.tags[key].checked = checked;
}
});
</script>
</body>
</html>
|