Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="app">
  <head>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.10/angular.min.js"></script>
    <meta charset=utf-8 />
    <title>JS Bin</title>
  </head>
  <body ng-controller="MyCtrl">
    <form action = "/">
      <label for="bikes">Bikes</label>
      <input type="number" min="0" ng-model="bikes" placeholder="Bikes" id = "bikes"/>
       <label for="countries">Tires</label>
      <input type="number" min="0" ng-model="tires" placeholder="tires" id = "tires"/>
    </form>
  </body>
</html>
 
var app = angular.module('app', []);
app.controller('MyCtrl', function($scope) {
  $scope.tires = $scope.bikes * 2;
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers