<div dir="ltr">Hi Alex,<div><br></div><div><div>We will manage the code on github soon.</div></div><div><br></div><div>Now, it's really just an AngularJS "hello world":</div><div><br></div><div><div><div><!doctype html></div>
<div><html ng-app></div><div>    <head></div><div><span class="" style="white-space:pre"> </span><title>AngularJS test: get ticket via RESTv2</title></div><div><span class="" style="white-space:pre">   </span><script src="<a href="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js">https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js</a>"></script></div>
<div><span class="" style="white-space:pre">    </span><script></div><div><span class="" style="white-space:pre">     </span>    function GetTicket($scope, $http) {</div><div><span class="" style="white-space:pre">  </span>      $scope.addTicket = function() {</div>
<div><span class="" style="white-space:pre">            </span>var tid = $scope.TicketId;</div><div><span class="" style="white-space:pre">         </span>$http.get("<a href="https://lajos:asdfasdf@dox4.docca.hu/REST/2.0/ticket/">https://lajos:asdfasdf@dox4.docca.hu/REST/2.0/ticket/</a>" + tid).</div>
<div>    <span class="" style="white-space:pre">              </span>success(function(data) {</div><div>        <span class="" style="white-space:pre">       </span>    $scope.ticketdata = data;</div><div>    <span class="" style="white-space:pre">              </span>});</div>
<div><span class="" style="white-space:pre">    </span>      };</div><div><span class="" style="white-space:pre">        </span>    }</div><div><span class="" style="white-space:pre">    </span></script></div><div>    </head></div>
<div><br></div><div>    <body></div><div><span class="" style="white-space:pre">  </span><div ng-controller="GetTicket"></div><div><span class="" style="white-space:pre">    </span>    <form ng-submit="addTicket()"></div>
<div><span class="" style="white-space:pre">    </span>    <input ng-model="TicketId"></div><div><span class="" style="white-space:pre">  </span>    <p>test id : {{TicketId}}</p></div><div><span class="" style="white-space:pre">    </span>    <p>ID : {{<a href="http://ticketdata.id">ticketdata.id</a>}}</p></div>
<div><span class="" style="white-space:pre">    </span>    <p>LastUpdated : {{ticketdata.LastUpdated}}</p></div><div><span class="" style="white-space:pre">  </span>    <p>Owner : {{<a href="http://ticketdata.Owner.id">ticketdata.Owner.id</a>}}</p></div>
<div><span class="" style="white-space:pre">    </span></form></div><div><span class="" style="white-space:pre">      </span></div></div><div>    </body></div><div></html></div></div></div><div><br></div><div class="gmail_extra">
<div>--<br>Bekeny</div><br><div class="gmail_quote">On Thu, Apr 3, 2014 at 11:38 PM, Alex Vandiver <span dir="ltr"><<a href="mailto:alexmv@bestpractical.com" target="_blank">alexmv@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On Thu, 2014-04-03 at 23:33 +0200, <a href="mailto:akos.torok@docca.hu">akos.torok@docca.hu</a> wrote:<br>

<br>
> Since then we've got some "hello world" thing:<br>
> - an angular client asks the user for a ticket id (via ng-model input<br>
> field),<br>
> - the angularjs code asks RT for some ticket head data (via REST),<br>
> - gets JSON answer from RT,<br>
> - and shows to the user on the html.<br>
><br>
> small step, but we are happy :)<br>
<br>
</div>Is your source control public yet?<br>
<span class=""><font color="#888888"> - Alex<br>
</font></span><div class=""><div class="h5"><br>
<br>
--<br>
RT Training - Dallas May 20-21<br>
<a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br>
</div></div></blockquote></div><br></div></div>