i am using in the Front End: Angular 2 and i have a Google Cloud EndPoint in Java, i don't now how to call my methods from angular 2, beacuse in the examples from [1]: https://cloud.google.com/endpoints/docs/frameworks/java/calling-from-javascript is with angular 1, and don't pase any code because the example is in the oficial page, some one that give the specific way to make this please from angular 2 whit @angular/cli and typescript call to my method in the Google Cloud EndPoint.
我在前端使用:Angular 2,我有一个Java CloudPoint,我现在不知道如何从角度2调用我的方法,因为[1]的例子:https://cloud.google .com / endpoints / docs / frameworks / java / calling-from-javascript是使用角度1,并且不要使用任何代码,因为该示例位于官方页面中,有些提供了特定的方法2 whit @ angular / cli和typescript在Google Cloud EndPoint中调用我的方法。
1 个解决方案
#1
0
The example link that you gave is Angular agnostic and is not specifically for Angular 1. That particular example waits for gapi to load, loads the appropriate API, then makes a call to the API. You should be able to use this flow for Angular 1 or 2.
您提供的示例链接是Angular不可知,并不专门针对Angular 1.该特定示例等待gapi加载,加载适当的API,然后调用API。您应该能够将此流用于Angular 1或2。
#1
0
The example link that you gave is Angular agnostic and is not specifically for Angular 1. That particular example waits for gapi to load, loads the appropriate API, then makes a call to the API. You should be able to use this flow for Angular 1 or 2.
您提供的示例链接是Angular不可知,并不专门针对Angular 1.该特定示例等待gapi加载,加载适当的API,然后调用API。您应该能够将此流用于Angular 1或2。