Angular: Empty Fiddle

http://angularjs.org/

HTML

<div ng-controller="TestCtrl as test">
        <input type="text" ng-model="test.name" />
        <a ng-click="test.changeName()" href="#">Change Name</a>
</div>

JavaScript

var myApp = angular.module('myApp',[]);

myApp.controller('TestCtrl', function ($scope) {
        this.name = 'Max';
        this.changeName = function () {
            this.name = new Date();
       }
       // not working       
       $scope.$watch("test.name",function(value){
            console.log(value)
       });
});