Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="myAppModule">
  <div ng-controller="myAppController" style="text-align:center">
     <p style="font-size:28px;">Enter Quantity:
 <input type="text" ng-change="hideQuantityResult()" ng-model="quantity"/></p>
    <button ng-click="calculateQuantity()">Calculate</button>
 <h2 ng-if="showQuantityResult">Total Cost: Rs.{{quantityResult}}</h2>
</div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers