I have a controller like this:
function postCtrl($scope){ $scope.model = { title: 'one' }; window.setInterval(function(){ $scope.model += ' more one,'; }, 1000); }
Side:
<div ng-controller="postCtrl"> <input type="text" ng-model="model.title"/> </div>
I want the text box to automatically update the value when model.title changes (every 1 second). Please tell me if possible
source share