Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myapp">
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <link rel="stylesheet" crossorigin="anonymous" integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc=" href="https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body ng-controller="ctrl">
  <div>
    <input ng-model="price">
  </div>
  <div>
      <dl class="dl-horizontal">
        <dt>そのまま</dt>
        <dd>{{price | currency}}</dd>
        <dt>.00を消す</dt>
      <dd>{{price | currency:undefined:0}}</dd>
    </dl>
    
  </div>
  
<script crossorigin="anonymous" integrity="sha256-6Yu7R8io0sEFNtrtytY3qQsLnaweva/4m25Zq5z1XU8=" src="https://cdn.jsdelivr.net/angularjs/1.4.7/angular.min.js"></script>
<script crossorigin="anonymous" integrity="sha256-8j5SMmGsw+SsguUll+FA9k0YmPxgvgNqaUIpw81/i9o=" src="https://cdn.jsdelivr.net/angularjs/1.4.7/i18n/angular-locale_ja-jp.js"></script>
</body>
</html>
 
angular.module("myapp", [])
  .controller('ctrl', ['$scope', function($scope){
    $scope.price = 39800;
  }]);
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
aqueipro
0viewers