AngularJS 테이블
AngularJS 테이블
ng-repeat 지시어는 테이블을 표시하는 데 적합합니다.
테이블에 데이터 표시
각도가있는 표를 표시하는 것은 매우 간단합니다.
예
<div ng-app="myApp" ng-controller="customersCtrl">
<table>
<tr ng-repeat="x in names">
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</table>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("customers.php")
.then(function (response) {$scope.names = response.data.records;});
});
</script>
[전체소스]
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="customersCtrl">
<table>
<tr ng-repeat="x in names">
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</table>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("customers.php")
.then(function (response) {$scope.names = response.data.records;});
});
</script>
</body>
</html>
ng-repeat 지시어는 테이블을 표시하는 데 적합합니다.
테이블에 데이터 표시
각도가있는 표를 표시하는 것은 매우 간단합니다.
예
<div ng-app="myApp" ng-controller="customersCtrl">
<table>
<tr ng-repeat="x in names">
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</table>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("customers.php")
.then(function (response) {$scope.names = response.data.records;});
});
</script>
[전체소스]
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="customersCtrl">
<table>
<tr ng-repeat="x in names">
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</table>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("customers.php")
.then(function (response) {$scope.names = response.data.records;});
});
</script>
</body>
</html>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 28 | 반응형웹 | 9년 전 | 4493 | ||
| 27 | 반응형웹 | 9년 전 | 7559 | ||
| 26 | 부트스트랩 |
|
10년 전 | 14831 | |
| 25 | 부트스트랩 |
|
10년 전 | 9424 | |
| 24 | 표준화 | 11년 전 | 8296 | ||
| 23 | 반응형웹 | 12년 전 | 13493 | ||
| 22 | 표준화 | 12년 전 | 9469 | ||
| 21 | 표준화 | 12년 전 | 16756 | ||
| 20 | 반응형웹 | 13년 전 | 19691 | ||
| 19 | 반응형웹 | 13년 전 | 31011 | ||
| 18 | 반응형웹 | 13년 전 | 36486 | ||
| 17 | 표준화 | 13년 전 | 12910 | ||
| 16 | 반응형웹 | 13년 전 | 29309 | ||
| 15 | 반응형웹 | 13년 전 | 11841 | ||
| 14 | 반응형웹 | 13년 전 | 31753 | ||
| 13 | 반응형웹 | 13년 전 | 29734 | ||
| 12 | 반응형웹 | 13년 전 | 39243 | ||
| 11 | 반응형웹 | 13년 전 | 50641 | ||
| 10 | 반응형웹 | 13년 전 | 32782 | ||
| 9 | 표준화 | 13년 전 | 9156 | ||
| 8 | 표준화 | 13년 전 | 11235 | ||
| 7 | 표준화 | 13년 전 | 9169 | ||
| 6 | 표준화 | 13년 전 | 11140 | ||
| 5 | 표준화 | 13년 전 | 11243 | ||
| 4 | 표준화 | 13년 전 | 14717 | ||
| 3 | 표준화 | 13년 전 | 8071 | ||
| 2 | 표준화 | 13년 전 | 10175 | ||
| 1 | 표준화 | 13년 전 | 11908 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기