Google Apps Script Web App 中的 Angular2

Jas*_*rin 5 javascript frontend google-apps-script angular

是否可以在 Google Apps Script Web App 中使用 Angular2?我进行了足够的搜索,但网络上没有涉及此主题的文档/文章。

如果可能,谁能给我一个使用 Angular2 的 Google Apps Script Web 应用程序示例?

更具体地说,我不确定如何使 System.import('app') 在 Google Apps 脚本中工作,因为 Google 应用程序不允许以这种方式引用文件。

谢谢

小智 0

实际上我确实将 Vuejs 与 Google Apps Script / HtmlService 类集成

你必须使用 vue 作为 cdn 并将你的所有页面写入一个文件中。

但 HtmlService 并不是为在生产中构建网页而设计的。

它对于在谷歌表格中构建侧边栏很有用。

我建议使用 Google Apps 脚本作为 Web 应用程序/API,它非常强大且稳定

你可以查看我的教程playlist.mashun.com