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>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 298 | CSS |
선택과집중
|
1개월 전 | 147 | |
| 297 | CSS |
선택과집중
|
3개월 전 | 351 | |
| 296 | CSS |
선택과집중
|
3개월 전 | 301 | |
| 295 | CSS |
선택과집중
|
3개월 전 | 279 | |
| 294 | CSS |
선택과집중
|
4개월 전 | 406 | |
| 293 | CSS |
선택과집중
|
4개월 전 | 347 | |
| 292 | CSS |
선택과집중
|
4개월 전 | 271 | |
| 291 | CSS |
선택과집중
|
4개월 전 | 281 | |
| 290 | CSS |
선택과집중
|
4개월 전 | 322 | |
| 289 | CSS |
선택과집중
|
4개월 전 | 298 | |
| 288 | CSS |
선택과집중
|
4개월 전 | 384 | |
| 287 | CSS |
선택과집중
|
5개월 전 | 335 | |
| 286 | CSS |
선택과집중
|
5개월 전 | 335 | |
| 285 | CSS |
선택과집중
|
5개월 전 | 354 | |
| 284 | CSS |
선택과집중
|
5개월 전 | 240 | |
| 283 | CSS |
|
2년 전 | 1512 | |
| 282 | CSS | 2년 전 | 2490 | ||
| 281 | CSS | 4년 전 | 4018 | ||
| 280 | CSS | 4년 전 | 4544 | ||
| 279 | 반응형웹 | 5년 전 | 2975 | ||
| 278 | 반응형웹 | 5년 전 | 2821 | ||
| 277 | 부트스트랩 | 7년 전 | 5016 | ||
| 276 | 부트스트랩 | 7년 전 | 6572 | ||
| 275 | 부트스트랩 | 7년 전 | 4654 | ||
| 274 | 부트스트랩 | 7년 전 | 6685 | ||
| 273 | 부트스트랩 | 7년 전 | 3354 | ||
| 272 | 부트스트랩 | 7년 전 | 3195 | ||
| 271 | 부트스트랩 | 7년 전 | 3695 | ||
| 270 | 부트스트랩 | 7년 전 | 3215 | ||
| 269 | 부트스트랩 | 7년 전 | 3088 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기