Google Apps脚本中的Angular JS [英] Angular JS in Google Apps Script

查看:105
本文介绍了Google Apps脚本中的Angular JS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Angular JS是否会得到Google Apps脚本的支持?我能够使用外部库如jQuery,UnderscoreJS但不是Angular JS?



有关CAJA何时会支持Angular JS的想法吗? Google Apps脚本支持Angular JS。您需要使用完整版本(未缩小)。在firefox上有一些问题,但主要工作正常。



您可以在您的appscript文件中使用angular进行以下更改。

  var ui = HtmlService.createHtmlOutputFromFile('myPage')
.setTitle('My Title');
ui.setSandboxMode(HtmlService.SandboxMode.IFRAME);


Does Angular JS will be supported by Google Apps Script? I am able to use external Library like jQuery, UnderscoreJS but not Angular JS?

Any idea about when CAJA will support Angular JS?

解决方案

Google Apps Script supports Angular JS . You need to use the full version (not minified) . There are some issues on firefox, but works fine mostly.

You can use angular with following change in your appscript file.

var ui = HtmlService.createHtmlOutputFromFile('myPage')
  .setTitle('My Title');
ui.setSandboxMode(HtmlService.SandboxMode.IFRAME);

这篇关于Google Apps脚本中的Angular JS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆