Skip to main content

Posts

Showing posts with the label auto refresh div in angularjs

Auto Refresh div using $interval() in AngularJs

Hello Everyone, I am going to share the how to auto refresh a particular area using angularjs.  In AngularJs, we are using $ interval () function for auto refresh a div without reloading your page each and every 5 seconds.  Click for Live demo The HTML code sample as given below. 01 02 03 04 05 06 07 08 09 10 11 12 //HTML code sample <div ng-app= "autoRefreshApp" >    <div ng-controller= "autoRefreshController" >      <div>        <input type= "button" ng-click= "stopTimer()" value= "Stop Count" >      </div>      <div style= "color:green;" >        {{displayMsg}}      </div>    </div> </div> //HTML code sample <div ng-app="autoRefreshApp"> <div ng-controller="autoRefreshController"...