从 Angular2 typescript 应用访问 Google Cloud Endpoint API 的最佳方式?

Best way to access Google Cloud Endpoint APIs from Angular2 typescript app?

我应该使用 gapi and the JavaScript Client Library to interact with the Google Cloud Endpoint APIs I create? Or can you use the HTTP Client/Library in Angular2 来处理您对 API 的所有请求吗? APIs 将具有授权和身份验证功能。谢谢

我发现 Angular2 中的 HTTPclient 库使用示例和文档更方便、更好。