Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.angularjs.org/1.1.1/angular.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body ng-app ng-controller='Ctrl'>
  <textarea name="" id="" cols="30" rows="10" ng-model='text' ng-trim='false'></textarea>
  <pre>{{text}}</pre>
</body>
</html>
 
    function Ctrl($scope) {
      $scope.text='';
      
      $scope.$watch('text', function (newValue) {
        console.log(newValue);
      });
    }
Output

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

Dismiss x
public
Bin info
invispro
0viewers