008b4de38740b373702134907afde7a7e53cb612
[angular-mojolicious.git] / public / app / monitor / printers.html
1 <!DOCTYPE HTML>
2 <html xmlns:ng="http://angularjs.org">
3 <head>
4 <meta charset="utf-8">
5 <script src="angular.js" ng:autobind></script>
6
7 <script>
8 Printers.$inject = ['$xhr']; 
9
10 function Printers(xhr){ 
11         this.xhr = xhr; 
12         var self = this;
13         this.xhr("JSON"
14                 , "/json/monitor/printers?callback=JSON_CALLBACK"
15                 , function(code, response){ 
16                         console.log('xhr JSON', code, response);
17                         self.data = response;
18                 }
19         ); 
20
21
22
23 </script>
24
25 <title>Printer overview</title>
26
27 </head>
28 <body>
29
30 <div ng:controller="Printers"> 
31
32 <ul>
33 <li ng:repeat
34
35 <input name=debug type=checkbox>
36 <pre ng:show="debug">
37 data={{data}}
38 </pre>
39
40 </div>
41
42
43 </body>
44 </html>