X-Git-Url: http://git.rot13.org/?p=angular-mojolicious.git;a=blobdiff_plain;f=public%2Fapp%2Fconference%2Fsymposiums.js;fp=public%2Fapp%2Fconference%2Fsymposiums.js;h=7502e762a83b843ff5268c6a511a3a9854c7316f;hp=0000000000000000000000000000000000000000;hb=4d82358d6579a2553f6d276c70b90563444bcc7f;hpb=b996bf8a730120b8d20643b475ada1fa0b345e0b diff --git a/public/app/conference/symposiums.js b/public/app/conference/symposiums.js new file mode 100644 index 0000000..7502e76 --- /dev/null +++ b/public/app/conference/symposiums.js @@ -0,0 +1,20 @@ + +Symposiums.$inject = ['$xhr', '$route']; + +function Symposiums(xhr, route){ + + this.route = route; + this.xhr = xhr; + + var data = {} + this.data = data; + + this.xhr("JSON" + , "http://localhost:5984/conference/_design/symposium/_view/work_nr%2Ctitle?callback=JSON_CALLBACK" + , function(code, response){ + console.log(code, response, data); + data.response = response; + } + ); +} +