AngularJS Filters 통화 필터
AngularJS Filters 통화 필터
currency필터는 통화로 숫자를 포맷 :
예
<div ng-app="myApp" ng-controller="costCtrl">
<h1>Price: {{ price | currency }}</h1>
</div>
[전체소스]
<!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="costCtrl">
<h1>Price: {{ price | currency }}</h1>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('costCtrl', function($scope) {
$scope.price = 58;
});
</script>
<p>The currency filter formats a number to a currency format.</p>
</body>
</html>
currency필터는 통화로 숫자를 포맷 :
예
<div ng-app="myApp" ng-controller="costCtrl">
<h1>Price: {{ price | currency }}</h1>
</div>
[전체소스]
<!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="costCtrl">
<h1>Price: {{ price | currency }}</h1>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('costCtrl', function($scope) {
$scope.price = 58;
});
</script>
<p>The currency filter formats a number to a currency format.</p>
</body>
</html>
첨부파일
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 118 | jQuery Mobile | 8년 전 | 1349 | ||
| 117 | jQuery Mobile | 8년 전 | 1601 | ||
| 116 | jQuery Mobile | 8년 전 | 1831 | ||
| 115 | jQuery Mobile | 8년 전 | 1784 | ||
| 114 | jQuery Mobile | 8년 전 | 1973 | ||
| 113 | jQuery Mobile | 8년 전 | 1882 | ||
| 112 | jQuery Mobile | 8년 전 | 2490 | ||
| 111 | jQuery Mobile | 8년 전 | 1795 | ||
| 110 | jQuery Mobile | 8년 전 | 1586 | ||
| 109 | jQuery Mobile | 8년 전 | 1750 | ||
| 108 | jQuery Mobile | 8년 전 | 1974 | ||
| 107 | jQuery Mobile | 8년 전 | 1775 | ||
| 106 | jQuery Mobile | 8년 전 | 1455 | ||
| 105 | jQuery Mobile | 8년 전 | 1757 | ||
| 104 | jQuery Mobile | 8년 전 | 2434 | ||
| 103 | jQuery Mobile | 8년 전 | 1564 | ||
| 102 | jQuery Mobile | 8년 전 | 1508 | ||
| 101 | jQuery Mobile | 8년 전 | 1701 | ||
| 100 | jQuery Mobile | 8년 전 | 1925 | ||
| 99 | jQuery Mobile | 8년 전 | 1383 | ||
| 98 | jQuery Mobile | 8년 전 | 1408 | ||
| 97 | jQuery Mobile | 8년 전 | 1664 | ||
| 96 | jQuery Mobile | 8년 전 | 1315 | ||
| 95 | jQuery Mobile | 8년 전 | 1128 | ||
| 94 | jQuery Mobile | 8년 전 | 1531 | ||
| 93 | jQuery Mobile | 8년 전 | 1149 | ||
| 92 | jQuery Mobile | 8년 전 | 1573 | ||
| 91 | jQuery Mobile | 8년 전 | 1524 | ||
| 90 | jQuery Mobile | 8년 전 | 1690 | ||
| 89 | jQuery Mobile | 8년 전 | 1669 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기