Server Datasnap and client AngularJS
<p>I created a DataSnap in delphi XE7 in the server side. I try to create a AngularJS application in the client side to consume the services of server side. But not found documentation about this, and my client application can't work fine. In the debug mode, the message "ReferenceError: TServerMethod1 is not defined".</p>

<p>The line erro is this:</p>

<pre><code>this._proxy = new TServerMethod1(DSConnectionInfo);
</code></pre>

<p>The complete AngularJS code is this:</p>

<pre><code>var module = angular.module('AngularIntro', []);
module.value('DSConnectionInfo', {host:'localhost',port:'8089'})

module.factory('DataSnap', function(DSConnectionInfo){
  if (!("_proxy" in this))
        this._proxy = new TServerMethod1(DSConnectionInfo);
      return this._proxy;
  })

module.controller('myController', function($scope, DataSnap){
    $scope.customers = DataSnap.GetCustomers(1).result;
  });
</code></pre>

<p>Please help!!!! And Tanks!!!!</p>