angular.module('demo', []) .controller('CountCtrl', ['$scope', function($scope) { $scope.message = ''; }]);
<body ng-app="demo"> <div ng-controller="CountCtrl"> <div>{{ message.length }} of 120</div> <textarea ng-model="message" cols="30" rows="10"></textarea> </div> </body>