33cf1e7086409c6c75b9152265b63e246521f5be
[angular-mojolicious.git] / templates / conference / symposiums.html.ep
1 <script type="text/javascript"> 
2         TestCntl.$inject = ['$xhr', '$route']; 
3
4         function TestCntl(xhr, route){ 
5
6                 this.route = route; 
7                 this.xhr = xhr; 
8
9                 var data = {}
10                 this.data = data;
11
12                 this.xhr("JSON"
13                         , "http://localhost:5984/conference/_design/symposium/_view/work_nr%2Ctitle?callback=JSON_CALLBACK"
14                         , function(code, response){ 
15                                 console.log(code, response, data);
16                                 data.response = response;
17                         }
18                 ); 
19
20         } 
21 </script> 
22
23 <div ng:controller="TestCntl"> 
24
25 <div ng:repeat="s in data.response.rows">
26 <h1 ng:show="s.key[1] == 1">{{s.key[0]}}</h1>
27 {{s.key[1]}}. {{s.value}}
28 </div>
29
30 <input name=debug type=checkbox>
31 <pre ng:show="debug">
32 data={{data}}
33 </pre>
34
35 </div>