【问题标题】:Google Cloud EndPoint in Java calling from Angular 2 (Angular-cli) with Typescript使用 Typescript 从 Angular 2 (Angular-cli) 调用 Java 中的 Google Cloud EndPoint
【发布时间】:2017-02-24 00:05:16
【问题描述】:

我在前端使用:Angular 2,并且我有一个 Java 中的 Google Cloud EndPoint,我现在不知道如何从 Angular 2 调用我的方法,因为在 [1] 的示例中:https://cloud.google.com/endpoints/docs/frameworks/java/calling-from-javascript 是使用角度 1,并且不要粘贴任何代码,因为该示例在官方页面中,有些人提供了具体的方法,请从 angular 2 whit @angular/cli 和 typescript 调用我在 Google Cloud EndPoint 中的方法.

【问题讨论】:

    标签: javascript angular typescript google-cloud-endpoints


    【解决方案1】:

    您提供的示例链接与 Angular 无关,并非专门针对 Angular 1。该特定示例等待 gapi 加载,加载适当的 API,然后调用 API。您应该能够将此流程用于 Angular 1 或 2。

    【讨论】:

      猜你喜欢
      • 2017-09-18
      • 2017-10-07
      • 2017-07-28
      • 2016-11-10
      • 2017-11-28
      • 1970-01-01
      • 2014-04-30
      • 2017-05-13
      • 2018-11-17
      相关资源
      最近更新 更多