AngularJS Live Example

HTML

<div ng:app ng-controller="Ctrl">
 {{message}}
 <br>
</div>

CSS

</style>
<script src="http://code.angularjs.org/angular-1.0.1.min.js"></script>
<style>

JavaScript

function Ctrl($scope) {
  $scope.message = "Waiting 2000ms for update";
    
    setTimeout(function () {
        $scope.$apply(function () {
            $scope.message = "Timeout called!";
        });
    }, 2000);
}