Angularjs : Update a variable after some time
<p>I'm trying to show some text while getting data from the server.
I'm trying to update the variable to show loading messages after some fixed time. But I'm unable to do.</p>

<pre><code>&lt;div class="circularProgress" ng-if="showCircularProgress" id="circularProgress"&gt;
  &lt;md-progress-circular md-mode="indeterminate" md-diameter="70"&gt;&lt;/md-progress-circular&gt;
  &lt;span&gt;{{progressMessage}}&lt;/span&gt;
&lt;/div&gt;

  angular.forEach(messageArray, function(msg, i) {
    setTimeout(updateProgressMessage(msg), 1000);
  });

var updateProgressMessage = function(message){
                $scope.progressMessage=message;
            }
</code></pre>

<p>Could anyone suggest me in setting delay?</p>