2017-02-24 69 views
1

我在前端使用Angular 2,并且我在Google中使用了Google Cloud EndPoint,我现在不需要如何调用我的方法角2,因为[1]:https://cloud.google.com/endpoints/docs/frameworks/java/calling-from-javascript的例子是有棱角的1,并且不要任何代码,因为这个例子是在官方页面中,有一个给出了具体的方法,请从棱角2惠特@ angular/cli和typecript调用我在Google Cloud EndPoint中的方法。Java中的Google Cloud EndPoint使用Typescript调用Angular 2(Angular-cli)

回答

0

您给出的示例链接是Angular不可知的,并不是专门针对Angular 1.该特定示例等待gapi加载,加载相应的API,然后调用API。您应该可以将此流程用于Angular 1或2.