Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="myApp">
  <div ng-controller="Ctrl as test">
    <input type="text" ng-model="test.name" /> 
  </div>
</body>
</html>
 
var myApp = angular.module('myApp', []);
myApp.controller('Ctrl', function ($scope) {
    this.name = 'Angular';
    $scope.$watch(angular.bind(this, function () { 
        return this.name;
    }), function(value) {
        console.log('Name change to ' + value);
    });
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers