File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html >
3
3
< head >
4
- < title > AngularJS Example - Single Timer Example</ title >
4
+ < title > AngularJS Example - Polling Timer Example</ title >
5
5
< script src ="../angular/angular.min.js "> </ script >
6
6
< script src ="../app/js/timer.js "> </ script >
7
7
< script >
32
32
</ head >
33
33
< body ng-app ="MyApp ">
34
34
< div >
35
- < h1 > AngularJS - Timer With Events Example </ h1 >
36
- < div ng-init ="timerType = 'Polling Server' " ng-controller ="PollingController " style ="border: 1px darkgray dashed; padding: 15px ">
37
- < h2 > Example Simulating Polling Server every 5000 milliseconds </ h2 >
35
+ < h1 > AngularJS - Polling Timer Example using < code > timer-tick </ code > event </ h1 >
36
+ < div ng-init ="timerType = 'Polling Server' " ng-controller ="PollingController " style ="border: 1px darkgray dashed; padding: 15px;margin:15px ">
37
+ < h2 > Polling Server every 5 seconds </ h2 >
38
38
< h3 > < timer interval ="5000 "/> </ h3 >
39
39
< textarea style ="height: 100px; " row =20 cols ="200 "> {{timerConsole}}</ textarea >
40
40
< br />
41
41
< button ng-click ="startTimer('poll-server') " ng-disabled ="timerRunning "> Start Timer</ button >
42
42
< button ng-click ="stopTimer('poll-server') " ng-disabled ="!timerRunning "> Stop Timer</ button >
43
43
</ div >
44
+ < br />
44
45
45
46
< div ng-init ="timerType = 'Saving Documents' " ng-controller ="PollingController " style ="border: 1px darkgray dashed; padding: 15px ">
46
- < h2 > Example Simulating Saving Document every 3000 milliseconds </ h2 >
47
+ < h2 > Saving Document every 3 seconds </ h2 >
47
48
< h3 > < timer interval ="3000 "/> </ h3 >
48
49
< textarea style ="height: 100px; " row =20 cols ="200 "> {{timerConsole}}</ textarea >
49
50
< br />
You can’t perform that action at this time.
0 commit comments